fix(layout): keep group tab strips visible on special pages

Opening settings or the driver store hid the whole workspace, so every
editor tab vanished with no mouse path back. The workspace now stays
mounted and hides only the pane content, keeping the strips clickable.
Special-page tabs also follow the classic flat tab presentation instead
of always rendering as separated-layout pills.
This commit is contained in:
t8y2 committed 2026-09-05 11:56:58 +08:00
1 parent 46afd0dd5e
commit 789d65d3df
8 files changed
+138 -24

No files matched your search

+4 -1
View File
@@ -3495,9 +3495,12 @@ onUnmounted(() => {
@update:open="(open: boolean) => (open ? activateSettingsPage() : closeSettingsPage())"
@check-updates="checkUpdates()"
/>
<div v-if="queryStore.tabs.length > 0" v-show="!driverStoreActive && !settingsStore.settingsPageActive" class="flex flex-col flex-1 min-h-0">
<!-- Keep the workspace mounted with its group tab strips visible while a special page is active:
the strips are the mouse path back to the editors (clicking a tab deactivates the page). -->
<div v-if="queryStore.tabs.length > 0" class="flex flex-col flex-1 min-h-0">
<SqlEditorWorkspace
ref="contentAreaRef"
:special-surface-active="driverStoreActive || settingsStore.settingsPageActive"
@locate-tab="locateTabInSidebar"
@toggle-zen-mode="toggleZenMode"
@start-resize="startTabBarResize"