From f06a2b2c97a9b9c75c9a1fd7c301dedd23bb8bad Mon Sep 17 00:00:00 2001 From: Dmitri Date: Tue, 5 May 2026 17:25:53 +0200 Subject: [PATCH] improved menus in constructor --- .../Constructor/BackgroundSettingsEditor.tsx | 18 +- .../Constructor/ConstructorControlsPanel.tsx | 77 ---- .../Constructor/ConstructorMenu.tsx | 195 ---------- .../Constructor/ConstructorToolbar.tsx | 352 ++++++++++++++++++ .../Constructor/CreateTransitionForm.tsx | 8 +- .../Constructor/ElementEditorHeader.tsx | 12 +- .../Constructor/ElementEditorPanel.tsx | 6 +- .../Constructor/InteractionModeToggle.tsx | 28 +- .../Constructor/MenuActionButton.tsx | 2 +- .../components/Constructor/PageSelector.tsx | 5 +- frontend/src/components/Constructor/index.ts | 2 +- frontend/src/components/Constructor/types.ts | 43 +++ .../CarouselSettingsSectionCompact.tsx | 18 +- .../CommonSettingsSectionCompact.tsx | 16 +- .../DescriptionSettingsSectionCompact.tsx | 18 +- .../EffectsSettingsSectionCompact.tsx | 54 +-- .../ElementSettings/ElementSettingsTabs.tsx | 6 +- .../GalleryCarouselSettingsSectionCompact.tsx | 12 +- .../GallerySectionStyleInputs.tsx | 56 +-- .../GallerySettingsSectionCompact.tsx | 18 +- .../MediaSettingsSectionCompact.tsx | 8 +- .../NavigationSettingsSectionCompact.tsx | 36 +- .../StyleSettingsSectionCompact.tsx | 50 +-- .../TooltipSettingsSectionCompact.tsx | 10 +- .../src/hooks/useConstructorPageActions.ts | 2 +- frontend/src/lib/elementDefaults.ts | 4 +- frontend/src/lib/parseJson.ts | 25 +- frontend/src/pages/constructor.tsx | 93 ++--- 28 files changed, 650 insertions(+), 524 deletions(-) delete mode 100644 frontend/src/components/Constructor/ConstructorControlsPanel.tsx delete mode 100644 frontend/src/components/Constructor/ConstructorMenu.tsx create mode 100644 frontend/src/components/Constructor/ConstructorToolbar.tsx diff --git a/frontend/src/components/Constructor/BackgroundSettingsEditor.tsx b/frontend/src/components/Constructor/BackgroundSettingsEditor.tsx index 692d443..a45a563 100644 --- a/frontend/src/components/Constructor/BackgroundSettingsEditor.tsx +++ b/frontend/src/components/Constructor/BackgroundSettingsEditor.tsx @@ -58,7 +58,7 @@ const BackgroundSettingsEditor: React.FC = ({ return (
-