mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Small UI fixes
This commit is contained in:
parent
a7957770f5
commit
644619b253
|
@ -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 ? (
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user