From 3d63c25845a123ecfb60a786a2caf2e8d11faafd Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 11 Mar 2025 12:47:00 +0300 Subject: [PATCH] R: Refactor layout definitions --- .../library/components/ToolbarItemAccess.tsx | 6 +- .../library/components/ToolbarItemCard.tsx | 7 ++- .../OssPage/EditorOssCard/EditorOssCard.tsx | 10 ++- .../pages/OssPage/EditorOssCard/FormOSS.tsx | 1 + .../pages/OssPage/EditorOssCard/OssStats.tsx | 10 +-- .../oss/pages/OssPage/MenuOssTabs.tsx | 2 +- .../EditorConstituenta/EditorConstituenta.tsx | 10 ++- .../EditorConstituenta/EditorControls.tsx | 63 ------------------- .../EditorConstituenta/FormConstituenta.tsx | 40 ++++++++++-- .../ToolbarConstituenta.tsx | 11 +--- .../EditorRSExpression/EditorRSExpression.tsx | 8 ++- .../EditorRSExpression/StatusBar.tsx | 10 +-- .../ToolbarRSExpression.tsx | 7 ++- .../EditorRSFormCard/EditorRSFormCard.tsx | 14 ++++- .../EditorRSFormCard/FormRSForm.tsx | 26 +++++--- .../EditorRSFormCard/RSFormStats.tsx | 10 +-- .../EditorRSFormCard/ToolbarVersioning.tsx | 7 ++- .../RSFormPage/EditorRSList/EditorRSList.tsx | 4 +- .../RSFormPage/EditorRSList/ToolbarRSList.tsx | 14 ++--- .../RSFormPage/EditorTermGraph/TGFlow.tsx | 9 +-- .../ViewConstituents/ViewConstituents.tsx | 15 +++-- .../pages/UserProfilePage/EditorPassword.tsx | 4 +- 22 files changed, 141 insertions(+), 147 deletions(-) delete mode 100644 rsconcept/frontend/src/features/rsform/pages/RSFormPage/EditorConstituenta/EditorControls.tsx diff --git a/rsconcept/frontend/src/features/library/components/ToolbarItemAccess.tsx b/rsconcept/frontend/src/features/library/components/ToolbarItemAccess.tsx index ddae13f6..2ab4e428 100644 --- a/rsconcept/frontend/src/features/library/components/ToolbarItemAccess.tsx +++ b/rsconcept/frontend/src/features/library/components/ToolbarItemAccess.tsx @@ -1,3 +1,5 @@ +import clsx from 'clsx'; + import { HelpTopic } from '@/features/help'; import { BadgeHelp } from '@/features/help/components'; import { useRoleStore, UserRole } from '@/features/users'; @@ -20,9 +22,11 @@ interface ToolbarItemAccessProps { toggleReadOnly: () => void; schema: ILibraryItem; isAttachedToOSS: boolean; + className?: string; } export function ToolbarItemAccess({ + className, visible, toggleVisible, readOnly, @@ -40,7 +44,7 @@ export function ToolbarItemAccess({ } return ( -
+