From 00ea912a9e3a0e9a07fb4a9471f8842b8c400b0a Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 29 Oct 2023 23:24:58 +0300 Subject: [PATCH] UI fixes --- rsconcept/frontend/src/components/Icons.tsx | 32 ++++++ .../pages/RSFormPage/EditorConstituenta.tsx | 2 +- .../src/pages/RSFormPage/EditorTermGraph.tsx | 108 ++++++++---------- 3 files changed, 82 insertions(+), 60 deletions(-) diff --git a/rsconcept/frontend/src/components/Icons.tsx b/rsconcept/frontend/src/components/Icons.tsx index 7b765df4..6a8f7cf3 100644 --- a/rsconcept/frontend/src/components/Icons.tsx +++ b/rsconcept/frontend/src/components/Icons.tsx @@ -327,6 +327,38 @@ export function ArrowsRotateIcon(props: IconProps) { ); } +export function ArrowsFocusIcon(props: IconProps) { + return ( + + + + ); +} + +export function LetterAIcon(props: IconProps) { + return ( + + + + ); +} + +export function LetterALinesIcon(props: IconProps) { + return ( + + + + ); +} + +export function PlanetIcon(props: IconProps) { + return ( + + + + ); +} + export function SaveIcon(props: IconProps) { return ( diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx index e2ad4e2f..1a199289 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx @@ -256,7 +256,7 @@ function EditorConstituenta({ spellCheck onChange={event => setConvention(event.target.value)} /> -
+
{ - return 'calc(100vw - 14.6rem)'; + return 'calc(100vw - 1.1rem)'; }, []); const canvasHeight = useMemo( @@ -374,8 +372,25 @@ function EditorTermGraph({ onOpenEdit, onCreateCst, onDeleteCst }: EditorTermGra onConfirm={handleChangeOptions} />} + { allSelected.length > 0 && +
+
+ Выбор {allSelected.length} из {schema?.stats?.count_all ?? 0} +
+
} +
+ } + onClick={() => setShowOptions(true)} + /> + : } + onClick={() => setNoTerms(prev => !prev)} + /> } @@ -389,48 +404,40 @@ function EditorTermGraph({ onOpenEdit, onCreateCst, onDeleteCst }: EditorTermGra onClick={handleDeleteCst} /> } + icon={} tooltip='Восстановить камеру' onClick={handleResetViewpoint} /> + } + tooltip='Анимация вращения' + disabled={!is3D} + onClick={() => setOrbit(prev => !prev) } + />
+ +
+ +
+
- -
- -
-
- -
-
-
- {hoverCst && -
- -
} - -
-
- Выбор {allSelected.length} из {schema?.stats?.count_all ?? 0} -
-
-
-