From 397bdff1e7d0a080808c08cd65559a3ac345782e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 23:24:37 +0200 Subject: [PATCH] Add viewport layout mode buttons and refactor entity addition logic in App.tsx --- src/app/App.tsx | 83 +++++++++++++++++-------------------------------- 1 file changed, 29 insertions(+), 54 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index b8c18d4c..2d8e708e 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3828,11 +3828,26 @@ export function App({ store, initialStatusMessage }: AppProps) { className={`toolbar__button ${editorState.toolMode === "box-create" ? "toolbar__button--active" : ""}`} type="button" onClick={() => store.setToolMode("box-create")} - > + > Box Create +
+ {VIEWPORT_LAYOUT_MODES.map((mode) => ( + + ))} +
+
+
+ {entityDisplayList.length === 0 ?
No entities authored yet.
: null} -
- - -
- -
- - -
- -
- -
- {entityDisplayList.length === 0 ? null : (
{entityDisplayList.map(({ entity, label }) => ( @@ -4192,15 +4176,6 @@ export function App({ store, initialStatusMessage }: AppProps) { ))}
)} - -
- - -