From c442ca8094734619437c96f85c851bd6c63610eb Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 14 May 2025 11:48:14 +0300 Subject: [PATCH] M: Minor UI fixes --- .../oss-page/editor-oss-graph/context-menu/context-menu.tsx | 1 - .../rsform/pages/rsform-page/editor-rslist/editor-rslist.tsx | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/context-menu.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/context-menu.tsx index 9b5571e6..eeadf16f 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/context-menu.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/context-menu.tsx @@ -43,7 +43,6 @@ export function ContextMenu({ isOpen, item, cursorX, cursorY, onHide }: ContextM style={{ top: `calc(${cursorY}px + 0.5rem)`, left: cursorX }} > = window.innerWidth - MENU_WIDTH} stretchTop={cursorY >= window.innerHeight - MENU_HEIGHT} diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rslist/editor-rslist.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rslist/editor-rslist.tsx index 01726f10..dfbb95c2 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rslist/editor-rslist.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rslist/editor-rslist.tsx @@ -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 (
@@ -146,7 +147,7 @@ export function EditorRSList() { ) : null}