From 2d9c4936b331e11c19034ec38b936c6db6711b3d Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sat, 11 May 2024 20:53:36 +0300 Subject: [PATCH] Firefox UI fixes --- rsconcept/frontend/src/app/Navigation/Logo.tsx | 2 +- rsconcept/frontend/src/components/man/BadgeHelp.tsx | 2 +- .../src/components/ui/DataTable/DataTable.tsx | 2 +- rsconcept/frontend/src/components/ui/Dropdown.tsx | 1 + .../frontend/src/components/ui/DropdownButton.tsx | 1 + .../frontend/src/components/ui/DropdownCheckbox.tsx | 2 +- .../frontend/src/components/ui/SelectMulti.tsx | 2 +- .../frontend/src/components/ui/SelectSingle.tsx | 2 +- rsconcept/frontend/src/components/ui/TextArea.tsx | 2 +- rsconcept/frontend/src/components/ui/TextInput.tsx | 2 +- .../frontend/src/components/wrap/AnimateFade.tsx | 1 + .../DlgConstituentaTemplate.tsx | 2 +- .../src/dialogs/DlgCreateCst/FormCreateCst.tsx | 1 + .../EditorConstituenta/FormConstituenta.tsx | 8 +++----- .../RSFormPage/EditorRSExpression/ParsingResult.tsx | 2 ++ .../RSFormPage/EditorRSExpression/StatusBar.tsx | 1 + .../pages/RSFormPage/EditorRSForm/FormRSForm.tsx | 2 ++ rsconcept/frontend/src/styling/setup.css | 13 ++++++++++--- 18 files changed, 31 insertions(+), 17 deletions(-) diff --git a/rsconcept/frontend/src/app/Navigation/Logo.tsx b/rsconcept/frontend/src/app/Navigation/Logo.tsx index 8daabdb5..9077a190 100644 --- a/rsconcept/frontend/src/app/Navigation/Logo.tsx +++ b/rsconcept/frontend/src/app/Navigation/Logo.tsx @@ -10,7 +10,7 @@ function Logo() { return ( Логотип КонцептПортал +
event.stopPropagation()}> diff --git a/rsconcept/frontend/src/components/ui/DataTable/DataTable.tsx b/rsconcept/frontend/src/components/ui/DataTable/DataTable.tsx index a593db38..8978ae49 100644 --- a/rsconcept/frontend/src/components/ui/DataTable/DataTable.tsx +++ b/rsconcept/frontend/src/components/ui/DataTable/DataTable.tsx @@ -140,7 +140,7 @@ function DataTable({ }, [rows, dense, noHeader, contentHeight]); return ( -
+
{!noHeader ? ( - + ); } diff --git a/rsconcept/frontend/src/components/ui/SelectMulti.tsx b/rsconcept/frontend/src/components/ui/SelectMulti.tsx index 81eb7551..275b9f9e 100644 --- a/rsconcept/frontend/src/components/ui/SelectMulti.tsx +++ b/rsconcept/frontend/src/components/ui/SelectMulti.tsx @@ -22,7 +22,7 @@ function DropdownIndicator = GroupBase - {props.selectProps.menuIsOpen ? : } + {props.selectProps.menuIsOpen ? : } ) ); diff --git a/rsconcept/frontend/src/components/ui/SelectSingle.tsx b/rsconcept/frontend/src/components/ui/SelectSingle.tsx index 2492f3a8..74cd5b45 100644 --- a/rsconcept/frontend/src/components/ui/SelectSingle.tsx +++ b/rsconcept/frontend/src/components/ui/SelectSingle.tsx @@ -22,7 +22,7 @@ function DropdownIndicator = GroupBase - {props.selectProps.menuIsOpen ? : } + {props.selectProps.menuIsOpen ? : } ) ); diff --git a/rsconcept/frontend/src/components/ui/TextArea.tsx b/rsconcept/frontend/src/components/ui/TextArea.tsx index c5985b81..1fbd02bd 100644 --- a/rsconcept/frontend/src/components/ui/TextArea.tsx +++ b/rsconcept/frontend/src/components/ui/TextArea.tsx @@ -37,7 +37,7 @@ function TextArea({ 'leading-tight', { 'border': !noBorder, - 'flex-grow': dense, + 'flex-grow max-w-full': dense, 'clr-outline': !noOutline }, colors, diff --git a/rsconcept/frontend/src/components/ui/TextInput.tsx b/rsconcept/frontend/src/components/ui/TextInput.tsx index 7f7a0364..70c125ff 100644 --- a/rsconcept/frontend/src/components/ui/TextInput.tsx +++ b/rsconcept/frontend/src/components/ui/TextInput.tsx @@ -45,7 +45,7 @@ function TextInput({ 'leading-tight truncate hover:text-clip', { 'px-3': !noBorder || !disabled, - 'flex-grow': dense, + 'flex-grow max-w-full': dense, 'border': !noBorder, 'clr-outline': !noOutline }, diff --git a/rsconcept/frontend/src/components/wrap/AnimateFade.tsx b/rsconcept/frontend/src/components/wrap/AnimateFade.tsx index f30b4dd9..76d428e9 100644 --- a/rsconcept/frontend/src/components/wrap/AnimateFade.tsx +++ b/rsconcept/frontend/src/components/wrap/AnimateFade.tsx @@ -25,6 +25,7 @@ function AnimateFade({ } return ( setForceComment(true)} diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx index f83833a4..fd0e5056 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta/FormConstituenta.tsx @@ -9,6 +9,7 @@ import { IconSave } from '@/components/Icons'; import RefsInput from '@/components/RefsInput'; import SubmitButton from '@/components/ui/SubmitButton'; import TextArea from '@/components/ui/TextArea'; +import TextInput from '@/components/ui/TextInput'; import AnimateFade from '@/components/wrap/AnimateFade'; import { useRSForm } from '@/context/RSFormContext'; import { CstType, IConstituenta, ICstUpdateData } from '@/models/rsform'; @@ -154,18 +155,14 @@ function FormConstituenta({ disabled={disabled} onChange={newValue => setTerm(newValue)} /> -