From e9f62a0abc946cab6b17964367fd0299411070d7 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 12 May 2024 13:58:28 +0300 Subject: [PATCH] UI improvements and fixes --- rsconcept/frontend/src/app/Navigation/Logo.tsx | 4 +--- rsconcept/frontend/src/components/ui/Checkbox.tsx | 1 + rsconcept/frontend/src/components/ui/CheckboxTristate.tsx | 1 + rsconcept/frontend/src/components/ui/SearchBar.tsx | 2 +- rsconcept/frontend/src/components/ui/SelectMulti.tsx | 5 +++++ rsconcept/frontend/src/components/ui/SelectSingle.tsx | 5 +++++ rsconcept/frontend/src/components/ui/TabLabel.tsx | 2 ++ rsconcept/frontend/src/components/ui/TextArea.tsx | 4 ++++ rsconcept/frontend/src/models/rslang.ts | 1 + .../RSFormPage/EditorConstituenta/FormConstituenta.tsx | 5 +++-- .../src/pages/RSFormPage/EditorRSForm/EditorRSForm.tsx | 6 +----- .../src/pages/RSFormPage/EditorRSForm/FormRSForm.tsx | 2 -- .../pages/RSFormPage/EditorTermGraph/GraphSelectors.tsx | 5 +++-- .../RSFormPage/ViewConstituents/ViewConstituents.tsx | 6 +++--- rsconcept/frontend/src/styling/setup.css | 8 +++----- rsconcept/frontend/src/styling/styles.css | 8 +++++++- rsconcept/frontend/src/utils/labels.ts | 2 ++ 17 files changed, 43 insertions(+), 24 deletions(-) diff --git a/rsconcept/frontend/src/app/Navigation/Logo.tsx b/rsconcept/frontend/src/app/Navigation/Logo.tsx index 9077a190..96d9f87f 100644 --- a/rsconcept/frontend/src/app/Navigation/Logo.tsx +++ b/rsconcept/frontend/src/app/Navigation/Logo.tsx @@ -10,9 +10,7 @@ function Logo() { return ( Логотип КонцептПортал ); diff --git a/rsconcept/frontend/src/components/ui/Checkbox.tsx b/rsconcept/frontend/src/components/ui/Checkbox.tsx index 84c93f82..373d831b 100644 --- a/rsconcept/frontend/src/components/ui/Checkbox.tsx +++ b/rsconcept/frontend/src/components/ui/Checkbox.tsx @@ -49,6 +49,7 @@ function Checkbox({ className={clsx( 'flex items-center gap-2', // prettier: split lines 'outline-none', + 'focus-frame', cursor, className )} diff --git a/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx b/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx index 47e7ce2a..83d83823 100644 --- a/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx +++ b/rsconcept/frontend/src/components/ui/CheckboxTristate.tsx @@ -53,6 +53,7 @@ function CheckboxTristate({ className={clsx( 'flex items-center gap-2', // prettier: split lines 'outline-none', + 'focus-frame', cursor, className )} diff --git a/rsconcept/frontend/src/components/ui/SearchBar.tsx b/rsconcept/frontend/src/components/ui/SearchBar.tsx index fbf7e04b..54c573fd 100644 --- a/rsconcept/frontend/src/components/ui/SearchBar.tsx +++ b/rsconcept/frontend/src/components/ui/SearchBar.tsx @@ -21,7 +21,7 @@ function SearchBar({ id, value, onChange, noBorder, ...restProps }: SearchBarPro noOutline placeholder='Поиск' type='search' - className='w-full pl-10' + className='w-full pl-10 outline-none' noBorder={noBorder} value={value} onChange={event => (onChange ? onChange(event.target.value) : undefined)} diff --git a/rsconcept/frontend/src/components/ui/SelectMulti.tsx b/rsconcept/frontend/src/components/ui/SelectMulti.tsx index 275b9f9e..48fe6618 100644 --- a/rsconcept/frontend/src/components/ui/SelectMulti.tsx +++ b/rsconcept/frontend/src/components/ui/SelectMulti.tsx @@ -55,6 +55,10 @@ function SelectMulti = GroupBase