From 0e1d637df29c7f959864c54a21b7b9dc29f59818 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 22:33:53 +0200 Subject: [PATCH] Enhance viewport region with layout modes and panels --- src/app/App.tsx | 62 +++++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 648bee99..4a7910fe 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -4077,41 +4077,57 @@ export function App({ store, initialStatusMessage }: AppProps) { -
+
Viewport
-
{getViewportCaption(editorState.toolMode, viewMode, brushList.length)}
+
+ {getViewportCaption(editorState.toolMode, layoutMode, activePanelId, activePanelState, brushList.length)} +
+
+ Active panel: {activePanelLabel} ({activePanelDisplaySummary}) +
-
- {VIEWPORT_VIEW_MODES.map((mode) => ( +
+ {VIEWPORT_LAYOUT_MODES.map((mode) => ( ))}
- applySelection(selection, "viewport")} - onCreateBoxBrush={handleCreateBoxBrush} - /> +
+ {VIEWPORT_PANEL_IDS.map((panelId) => ( + applySelection(selection, "viewport")} + onCreateBoxBrush={handleCreateBoxBrush} + /> + ))} +