From 11dbf2bcd4c5d11b16cf3fec05069f0ad06509af Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:11:41 +0300 Subject: [PATCH] Change editor layout --- .../pages/RSFormPage/EditorConstituenta.tsx | 4 ++-- .../src/pages/RSFormPage/EditorItems.tsx | 22 ++++++++++++------- .../src/pages/RSFormPage/EditorRSForm.tsx | 2 +- .../src/pages/RSFormPage/EditorTermGraph.tsx | 2 +- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 9 ++++---- .../pages/RSFormPage/elements/RSFormStats.tsx | 2 +- 6 files changed, 24 insertions(+), 17 deletions(-) diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx index 3534245a..7e222c1f 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx @@ -136,8 +136,8 @@ function EditorConstituenta({ } return ( -
-
+
+
{activeCst && diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx index 67f72b73..78ba92e0 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx @@ -3,7 +3,6 @@ import { toast } from 'react-toastify'; import Button from '../../components/Common/Button'; import ConceptTooltip from '../../components/Common/ConceptTooltip'; -import Divider from '../../components/Common/Divider'; import DataTable, { createColumnHelper, type RowSelectionState,VisibilityState } from '../../components/DataTable'; import HelpRSFormItems from '../../components/Help/HelpRSFormItems'; import { ArrowDownIcon, ArrowUpIcon, DumpBinIcon, HelpIcon, MeshIcon, SmallPlusIcon } from '../../components/Icons'; @@ -21,6 +20,8 @@ const COLUMN_DEFINITION_HIDE_THRESHOLD = 1000; const COLUMN_TYPE_HIDE_THRESHOLD = 1200; const COLUMN_CONVENTION_HIDE_THRESHOLD = 1800; +const EDITOR_BUTTON_DIMENSIONS = 'h-[1.5rem] w-[1.8em]'; + const columnHelper = createColumnHelper(); interface EditorItemsProps { @@ -299,11 +300,12 @@ function EditorItems({ onOpenEdit, onCreateCst, onDeleteCst }: EditorItemsProps)
Выбор {selected.length} из {schema?.stats?.count_all ?? 0}
-
+