From f3e01dd4e3403a043835fe3d44318f6df1f0ee9d Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 20 May 2026 23:31:53 +0200 Subject: [PATCH] fix(raw_apps): keep tab bar visible when Preview is active in single mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "VS Code-style" restructure put the tab bar inside the left Pane. When activeTabKind became 'preview' in single mode, the left pane collapsed to width 0 and the entire tab bar disappeared with it — leaving the user with no way to switch back to a file tab except via the sidebar. Move the main tab bar back above the inner Splitpanes (full width, always visible). The preview pseudo-header stays inside the right pane, carrying the bundler / inspector / rebuild toolbar. The splitter only goes through the content area below the tab bar, which is acceptable given how much friction the disappearing-tabs edge case caused. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../components/raw_apps/RawAppEditor.svelte | 233 +++++++++--------- 1 file changed, 117 insertions(+), 116 deletions(-) diff --git a/frontend/src/lib/components/raw_apps/RawAppEditor.svelte b/frontend/src/lib/components/raw_apps/RawAppEditor.svelte index 86a79d6d69..fd58ca4330 100644 --- a/frontend/src/lib/components/raw_apps/RawAppEditor.svelte +++ b/frontend/src/lib/components/raw_apps/RawAppEditor.svelte @@ -1330,47 +1330,56 @@ {/if} - -
- - -
- activateTab(id)} - onClose={(id) => closeTab(id)} - onReorder={(next) => reorderTabs(next)} +
+ + activateTab(id)} + onClose={(id) => closeTab(id)} + onReorder={(next) => reorderTabs(next)} + > + {#snippet trailing()} +
+ -
- {/snippet} -
-
+ + +
+ {/snippet} + + +
+ + +
-
- - -
- -
+ + +
- Preview -
-
- - -
+
+ + + }} + > + + + +
+
- -
-
- + + +