From 644619b253328b1ad56d29515123b60ad84a5b4a Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:39:22 +0300 Subject: [PATCH] Small UI fixes --- .../pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx | 2 +- .../src/pages/RSFormPage/EditorTermGraph/TermGraph.tsx | 3 +-- rsconcept/frontend/src/utils/codemirror.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx index 83d03ad2..7dd2fd2b 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx @@ -177,7 +177,7 @@ function FormConstituenta({ placeholder='Договоренность об интерпретации или пояснение' value={convention} disabled={!isMutable} - rows={convention.length > ROW_SIZE_IN_CHARACTERS ? 3 : 2} + rows={2 * convention.length > ROW_SIZE_IN_CHARACTERS ? 3 : 2} onChange={event => setConvention(event.target.value)} /> {isMutable || processing ? ( diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorTermGraph/TermGraph.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorTermGraph/TermGraph.tsx index 0954f726..b27876a2 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorTermGraph/TermGraph.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorTermGraph/TermGraph.tsx @@ -2,7 +2,7 @@ import { useCallback, useLayoutEffect, useMemo, useRef } from 'react'; -import GraphUI, { GraphCanvasRef, GraphEdge, GraphNode, LayoutTypes, Sphere, useSelection } from '@/components/GraphUI'; +import GraphUI, { GraphCanvasRef, GraphEdge, GraphNode, LayoutTypes, useSelection } from '@/components/GraphUI'; import { useConceptTheme } from '@/context/ThemeContext'; import { graphDarkT, graphLightT } from '@/styling/color'; import { resources } from '@/utils/constants'; @@ -126,7 +126,6 @@ function TermGraph({ } labelFontUrl={resources.graph_font} theme={darkMode ? graphDarkT : graphLightT} - renderNode={({ node, ...rest }) => } /> diff --git a/rsconcept/frontend/src/utils/codemirror.ts b/rsconcept/frontend/src/utils/codemirror.ts index 97b62980..a5ca510b 100644 --- a/rsconcept/frontend/src/utils/codemirror.ts +++ b/rsconcept/frontend/src/utils/codemirror.ts @@ -127,7 +127,7 @@ export function findContainedNodes(start: number, finish: number, tree: Tree, fi export function domTooltipConstituenta(cst?: IConstituenta) { const dom = document.createElement('div'); dom.className = clsx( - 'z-tooltip', + 'z-modal-tooltip', 'max-h-[25rem] max-w-[25rem] min-w-[10rem]', 'p-2', 'border shadow-md',