From ab8c6082da4f83851c8ced7902b588c3e6bf2f23 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:41:42 +0300 Subject: [PATCH] M: Fix sidelist dynamics --- .../RSFormPage/EditorConstituenta/EditorConstituenta.tsx | 4 ++-- .../pages/RSFormPage/ViewConstituents/ConstituentsSearch.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/EditorConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/EditorConstituenta.tsx index c27c528c..a1d17b25 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/EditorConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/EditorConstituenta.tsx @@ -15,7 +15,7 @@ import FormConstituenta from './FormConstituenta'; import ToolbarConstituenta from './ToolbarConstituenta'; // Threshold window width to switch layout. -const SIDELIST_LAYOUT_THRESHOLD = 1000; // px +const SIDELIST_LAYOUT_THRESHOLD = 1050; // px interface EditorConstituentaProps { activeCst?: IConstituenta; @@ -87,7 +87,7 @@ function EditorConstituenta({ activeCst, isModified, setIsModified, onOpenEdit } tabIndex={-1} className={clsx( 'cc-fade-in', - 'min-h-[20rem] max-w-[95rem] mx-auto', + 'min-h-[20rem] max-w-[calc(min(100vw,95rem))] mx-auto', 'flex pt-[1.9rem]', 'overflow-y-auto overflow-x-clip', { 'flex-col md:items-center': isNarrow } diff --git a/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ConstituentsSearch.tsx b/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ConstituentsSearch.tsx index c15acf96..0c138ba6 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ConstituentsSearch.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/ViewConstituents/ConstituentsSearch.tsx @@ -63,7 +63,7 @@ function ConstituentsSearch({ schema, activeID, activeExpression, dense, setFilt