From 3edee8450e9a00b439bbe689036338c2826ae4c4 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:40:58 +0300 Subject: [PATCH] M: Optimize dialogs height for small screen notebooks --- rsconcept/frontend/src/components/ui/Modal.tsx | 10 +++------- .../DlgConstituentaTemplate.tsx | 4 ++-- .../dialogs/DlgConstituentaTemplate/TabTemplate.tsx | 2 +- .../dialogs/DlgCreateOperation/DlgCreateOperation.tsx | 6 +++--- .../src/dialogs/DlgEditOperation/DlgEditOperation.tsx | 2 +- .../src/dialogs/DlgEditOperation/TabSynthesis.tsx | 2 +- .../src/dialogs/DlgEditReference/DlgEditReference.tsx | 2 +- .../dialogs/DlgEditReference/TabEntityReference.tsx | 2 +- .../dialogs/DlgInlineSynthesis/DlgInlineSynthesis.tsx | 2 +- .../src/dialogs/DlgInlineSynthesis/TabConstituents.tsx | 2 +- .../src/dialogs/DlgInlineSynthesis/TabSchema.tsx | 2 +- 11 files changed, 16 insertions(+), 20 deletions(-) diff --git a/rsconcept/frontend/src/components/ui/Modal.tsx b/rsconcept/frontend/src/components/ui/Modal.tsx index dcd01f2b..929f80b2 100644 --- a/rsconcept/frontend/src/components/ui/Modal.tsx +++ b/rsconcept/frontend/src/components/ui/Modal.tsx @@ -103,23 +103,19 @@ function Modal({ {children} -
+
{!readonly ? (
diff --git a/rsconcept/frontend/src/dialogs/DlgConstituentaTemplate/DlgConstituentaTemplate.tsx b/rsconcept/frontend/src/dialogs/DlgConstituentaTemplate/DlgConstituentaTemplate.tsx index e4841eac..29efa99c 100644 --- a/rsconcept/frontend/src/dialogs/DlgConstituentaTemplate/DlgConstituentaTemplate.tsx +++ b/rsconcept/frontend/src/dialogs/DlgConstituentaTemplate/DlgConstituentaTemplate.tsx @@ -160,13 +160,13 @@ function DlgConstituentaTemplate({ hideWindow, schema, onCreate, insertAfter }: - + partialUpdate({ prototype: cst })} prefixID={prefixes.cst_template_ist} - rows={9} + rows={8} />