From 99507a9b8df13482564de5335da09ee59d65d1e9 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Mon, 10 Mar 2025 16:01:40 +0300 Subject: [PATCH] F: Improve styling pt2 --- .../frontend/src/app/ApplicationLayout.tsx | 2 +- rsconcept/frontend/src/app/GlobalLoader.tsx | 16 +++------- rsconcept/frontend/src/app/MutationErrors.tsx | 18 +++-------- .../frontend/src/app/Navigation/Logo.tsx | 1 + .../src/app/Navigation/Navigation.tsx | 27 ++-------------- .../src/components/Container/Divider.tsx | 2 +- .../components/DataTable/PaginationTools.tsx | 3 +- .../src/components/Input/FileInput.tsx | 2 +- .../src/components/Input/SelectMulti.tsx | 2 +- .../src/components/Input/SelectSingle.tsx | 2 +- .../src/components/Input/SelectTree.tsx | 24 ++++++++------ .../src/components/Modal/ModalBackdrop.tsx | 11 ++----- .../src/components/Modal/ModalForm.tsx | 9 ++---- .../src/components/Modal/ModalLoader.tsx | 17 +++------- .../src/components/Modal/ModalView.tsx | 12 ++----- .../src/components/View/ValueStats.tsx | 2 +- .../src/features/auth/pages/LoginPage.tsx | 7 ++-- .../auth/pages/RestorePasswordPage.tsx | 14 ++------ .../features/help/components/BadgeHelp.tsx | 2 +- .../features/help/components/InfoCstClass.tsx | 4 +-- .../help/components/InfoCstStatus.tsx | 2 +- .../help/items/ui/HelpRSGraphTerm.tsx | 4 +-- .../src/features/help/items/ui/HelpRSMenu.tsx | 2 +- .../help/pages/ManualsPage/ManualsPage.tsx | 2 +- .../help/pages/ManualsPage/TopicsDropdown.tsx | 8 ++--- .../help/pages/ManualsPage/TopicsStatic.tsx | 2 +- .../library/components/PickSchema.tsx | 4 +-- .../library/components/SelectLocation.tsx | 4 +-- .../components/SelectLocationContext.tsx | 12 ++----- .../library/components/SelectVersion.tsx | 2 +- .../library/components/ToolbarItemAccess.tsx | 4 +-- .../library/dialogs/DlgChangeLocation.tsx | 9 +++--- .../library/dialogs/DlgCloneLibraryItem.tsx | 14 +++----- .../library/dialogs/DlgCreateVersion.tsx | 5 ++- .../pages/CreateItemPage/FormCreateItem.tsx | 3 +- .../pages/LibraryPage/TableLibraryItems.tsx | 2 +- .../pages/LibraryPage/ToolbarSearch.tsx | 21 ++++-------- .../pages/LibraryPage/ViewSideLocation.tsx | 2 +- .../oss/components/OperationTooltip.tsx | 2 +- .../oss/dialogs/DlgChangeInputSchema.tsx | 3 +- .../DlgCreateOperation/TabInputOperation.tsx | 2 +- .../TabSynthesisOperation.tsx | 2 +- .../oss/dialogs/DlgDeleteOperation.tsx | 3 +- .../oss/dialogs/DlgRelocateConstituents.tsx | 3 +- .../pages/OssPage/EditorOssCard/OssStats.tsx | 2 +- .../rsform/components/BadgeGrammeme.tsx | 9 +----- .../rsform/components/InfoConstituenta.tsx | 6 ++-- .../rsform/components/PickConstituenta.tsx | 2 +- .../components/PickMultiConstituenta.tsx | 5 +-- .../rsform/components/PickSubstitutions.tsx | 14 ++++---- .../rsform/components/RSInput/RSInput.tsx | 2 +- .../rsform/components/RSInput/tooltip.ts | 10 +----- .../rsform/components/RefsInput/RefsInput.tsx | 4 +-- .../rsform/components/RefsInput/tooltip.ts | 11 ++----- .../rsform/components/WordformButton.tsx | 2 +- .../dialogs/DlgCreateCst/DlgCreateCst.tsx | 2 +- .../dialogs/DlgCreateCst/FormCreateCst.tsx | 17 +++------- .../dialogs/DlgCstTemplate/DlgCstTemplate.tsx | 5 ++- .../dialogs/DlgCstTemplate/TabArguments.tsx | 32 +++---------------- .../dialogs/DlgCstTemplate/TabTemplate.tsx | 2 +- .../dialogs/DlgDeleteCst/DlgDeleteCst.tsx | 3 +- .../dialogs/DlgDeleteCst/ListConstituents.tsx | 4 +-- .../DlgEditReference/DlgEditReference.tsx | 5 ++- .../DlgEditReference/TabEntityReference.tsx | 2 +- .../TabSyntacticReference.tsx | 2 +- .../DlgEditWordForms/TableWordForms.tsx | 8 ++--- .../rsform/dialogs/DlgGraphParams.tsx | 2 +- .../features/rsform/dialogs/DlgRenameCst.tsx | 7 ++-- .../src/features/rsform/dialogs/DlgShowQR.tsx | 3 +- .../rsform/dialogs/DlgSubstituteCst.tsx | 3 +- .../rsform/dialogs/DlgUploadRSForm.tsx | 2 +- .../EditorConstituenta/EditorConstituenta.tsx | 6 ++-- .../EditorConstituenta/EditorControls.tsx | 6 ++-- .../EditorRSExpression/RSEditControls.tsx | 2 +- .../EditorRSExpression/RSLocalButton.tsx | 2 +- .../EditorRSExpression/RSTokenButton.tsx | 4 +-- .../EditorRSExpression/StatusBar.tsx | 7 +++- .../ToolbarRSExpression.tsx | 2 +- .../EditorRSFormCard/EditorRSFormCard.tsx | 6 ++-- .../EditorRSFormCard/RSFormStats.tsx | 2 +- .../EditorRSFormCard/ToolbarVersioning.tsx | 2 +- .../RSFormPage/EditorRSList/TableRSList.tsx | 4 +-- .../RSFormPage/EditorTermGraph/ViewHidden.tsx | 2 +- .../rsform/pages/RSFormPage/RSTabs.tsx | 2 +- .../ViewConstituents/ViewConstituents.tsx | 11 +++---- rsconcept/frontend/src/styling/setup.css | 18 ++++++++--- rsconcept/frontend/src/styling/styles.css | 11 +++++++ 87 files changed, 202 insertions(+), 345 deletions(-) diff --git a/rsconcept/frontend/src/app/ApplicationLayout.tsx b/rsconcept/frontend/src/app/ApplicationLayout.tsx index e2ca204d..8a65e672 100644 --- a/rsconcept/frontend/src/app/ApplicationLayout.tsx +++ b/rsconcept/frontend/src/app/ApplicationLayout.tsx @@ -25,7 +25,7 @@ export function ApplicationLayout() { return ( -
+
-
-
-
+
+ +
diff --git a/rsconcept/frontend/src/app/MutationErrors.tsx b/rsconcept/frontend/src/app/MutationErrors.tsx index ffee0201..23f7fefe 100644 --- a/rsconcept/frontend/src/app/MutationErrors.tsx +++ b/rsconcept/frontend/src/app/MutationErrors.tsx @@ -1,8 +1,7 @@ -import clsx from 'clsx'; - import { useMutationErrors } from '@/backend/useMutationErrors'; import { Button } from '@/components/Control'; import { DescribeError } from '@/components/InfoError'; +import { ModalBackdrop } from '@/components/Modal/ModalBackdrop'; import { useEscapeKey } from '@/hooks/useEscapeKey'; import { useDialogsStore } from '@/stores/dialogs'; @@ -19,18 +18,11 @@ export function MutationErrors() { hideDialog(); return ( -
-
-
-
+
+ +

Ошибка при обработке

-
+