M: Minor UI fixes

This commit is contained in:
Ivan 2025-05-14 11:48:42 +03:00
parent edd94abe97
commit 2dc2649ff6
2 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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}