Small UI fixes

This commit is contained in:
IRBorisov 2024-03-10 21:39:22 +03:00
parent a7957770f5
commit 644619b253
3 changed files with 3 additions and 4 deletions

View File

@ -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 ? (

View File

@ -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 }) => <Sphere {...rest} node={node} />}
/>
</div>
</div>

View File

@ -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',