mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
M: Minor UI fixes
This commit is contained in:
parent
edd94abe97
commit
2dc2649ff6
|
@ -43,7 +43,6 @@ export function ContextMenu({ isOpen, item, cursorX, cursorY, onHide }: ContextM
|
|||
style={{ top: `calc(${cursorY}px + 0.5rem)`, left: cursorX }}
|
||||
>
|
||||
<Dropdown
|
||||
className='z-navigation!'
|
||||
isOpen={isOpen}
|
||||
stretchLeft={cursorX >= window.innerWidth - MENU_WIDTH}
|
||||
stretchTop={cursorY >= window.innerHeight - MENU_HEIGHT}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import { useState } from 'react';
|
||||
import { toast } from 'react-toastify';
|
||||
import clsx from 'clsx';
|
||||
import fileDownload from 'js-file-download';
|
||||
|
||||
import { MiniButton } from '@/components/control';
|
||||
|
@ -123,7 +124,7 @@ export function EditorRSList() {
|
|||
return false;
|
||||
}
|
||||
|
||||
const tableHeight = useFitHeight('4rem + 5px');
|
||||
const tableHeight = useFitHeight(isContentEditable ? '4rem + 5px' : '2rem');
|
||||
|
||||
return (
|
||||
<div tabIndex={-1} onKeyDown={handleKeyDown} className='relative pt-8'>
|
||||
|
@ -146,7 +147,7 @@ export function EditorRSList() {
|
|||
) : null}
|
||||
|
||||
<MiniButton
|
||||
className='absolute z-pop top-18 right-4 hidden sm:block'
|
||||
className={clsx('absolute z-pop right-4 hidden sm:block', isContentEditable ? 'top-18' : 'top-8')}
|
||||
title='Выгрузить в формате CSV'
|
||||
icon={<IconCSV size='1.25rem' className='icon-green' />}
|
||||
onClick={handleDownloadCSV}
|
||||
|
|
Loading…
Reference in New Issue
Block a user