From e9eed37aeefe3f350572581b5c77dd4dad12e030 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:18:50 +0300 Subject: [PATCH] Improve dynamic sizes in ConstituentaEdit --- .../frontend/src/components/Common/Loader.tsx | 13 +- .../pages/RSFormPage/EditorConstituenta.tsx | 20 +- .../pages/RSFormPage/EditorRSExpression.tsx | 6 +- .../RSFormPage/elements/ParsingResult.tsx | 3 +- .../elements/ViewSideConstituents.tsx | 188 ++++++++++-------- 5 files changed, 129 insertions(+), 101 deletions(-) diff --git a/rsconcept/frontend/src/components/Common/Loader.tsx b/rsconcept/frontend/src/components/Common/Loader.tsx index 5c6d319e..85338b78 100644 --- a/rsconcept/frontend/src/components/Common/Loader.tsx +++ b/rsconcept/frontend/src/components/Common/Loader.tsx @@ -1,9 +1,18 @@ import { ThreeDots } from 'react-loader-spinner'; -export function Loader() { +interface LoaderProps { + size?: number +} + +export function Loader({size=10}: LoaderProps) { return (
Список конституент пуст
-Измените параметры фильтра
- } + conditionalRowStyles={conditionalRowStyles} + noDataComponent={ + +Список конституент пуст
+Измените параметры фильтра
+ + } striped highlightOnHover @@ -173,7 +187,7 @@ function ViewSideConstituents({ expression, activeID, onOpenEdit }: ViewSideCons dense />