Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(tabs): match the vertical tab rail tone to the top bar

弈秋6770fec9ca42
diff --git a/apps/desktop/src/components/layout/EditorGroupTabBar.vue b/apps/desktop/src/components/layout/EditorGroupTabBar.vue
index 85436e2553..40dfccb22f 100644
--- a/apps/desktop/src/components/layout/EditorGroupTabBar.vue
+++ b/apps/desktop/src/components/layout/EditorGroupTabBar.vue
@@ -288,7 +288,9 @@ const hasHorizontalFixedRows = computed(() => !isVerticalLayout.value && !isTwoR
const tabBarClass = computed(() => [
isClassicLayout.value ? "classic-tab-layout" : "separated-tab-layout",
isVerticalLayout.value
- ? `vertical-tab-layout h-full w-60 flex-col bg-background ${settingsStore.editorSettings.tabPlacement === "right" ? "border-l" : "border-r"}`
+ ? // Same rail tone as the classic top bar (issue #13236): a background-colored
+ // rail made active and inactive pills hard to tell apart.
+ `vertical-tab-layout h-full w-60 flex-col bg-muted ${settingsStore.editorSettings.tabPlacement === "right" ? "border-l" : "border-r"}`
: isClassicLayout.value
? "bg-muted"
: `bg-background ${settingsStore.editorSettings.tabPlacement === "bottom" ? "border-t" : "border-b"}`,
diff --git a/apps/desktop/src/components/layout/__tests__/EditorGroupTabBar.groups.spec.ts b/apps/desktop/src/components/layout/__tests__/EditorGroupTabBar.groups.spec.ts
index 42553922de..c28b0ab24c 100644
--- a/apps/desktop/src/components/layout/__tests__/EditorGroupTabBar.groups.spec.ts
+++ b/apps/desktop/src/components/layout/__tests__/EditorGroupTabBar.groups.spec.ts
@@ -933,6 +933,8 @@ describe("EditorGroupTabBar special page navigation", () => {
expect(store.activeTabId).toBe(tabId);
const vertical = placement === "left" || placement === "right";
expect(host.querySelector(".app-tab-bar")?.classList.contains("vertical-tab-layout")).toBe(vertical);
+ // The vertical rail keeps the classic top bar's muted tone (#13236).
+ expect(host.querySelector(".app-tab-bar")?.classList.contains("bg-muted")).toBe(vertical || layout === "classic");
const special = host.querySelector<HTMLElement>("[data-settings-page-tab]")!;
expect(special.classList.contains("h-8")).toBe(vertical);
expect(special.style.boxShadow).toBe(vertical ? "" : layout === "classic" ? "inset 0 -2px 0 color-mix(in srgb, var(--foreground) 72%, transparent)" : "");
diff --git a/apps/desktop/src/components/layout/appTabBar.css b/apps/desktop/src/components/layout/appTabBar.css
index 75f824749b..6f15067b74 100644
--- a/apps/desktop/src/components/layout/appTabBar.css
+++ b/apps/desktop/src/components/layout/appTabBar.css
@@ -1084,8 +1084,8 @@
/* Without semantic grouping there is no group color to distinguish the
* active item, so give the selected vertical tab a stronger neutral state. */
.vertical-tab-layout .app-tab-pill:not(.tab-group-tab)[data-active-tab="true"] {
- background-color: var(--app-tab-background, color-mix(in srgb, var(--foreground) 16%, var(--background)));
- border-color: var(--app-tab-active-border, color-mix(in srgb, var(--foreground) 32%, var(--border)));
+ background-color: var(--app-tab-background, color-mix(in srgb, var(--foreground) 20%, var(--background)));
+ border-color: var(--app-tab-active-border, color-mix(in srgb, var(--foreground) 38%, var(--border)));
box-shadow:
inset 3px 0 0 var(--app-tab-active-accent, var(--ring)),
inset 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent),
@@ -1101,8 +1101,8 @@
* background and border over the same tokens. The composite box-shadow stays
* out — losing it is cosmetic, and a partial shadow list is all-or-nothing. */
html.dbx-legacy-webview .vertical-tab-layout .app-tab-pill:not(.tab-group-tab)[data-active-tab="true"] {
- background-color: var(--app-tab-background, rgba(var(--dbx-foreground-rgb), 0.16)) !important;
- border-color: var(--app-tab-active-border, rgba(var(--dbx-foreground-rgb), 0.32)) !important;
+ background-color: var(--app-tab-background, rgba(var(--dbx-foreground-rgb), 0.2)) !important;
+ border-color: var(--app-tab-active-border, rgba(var(--dbx-foreground-rgb), 0.38)) !important;
}
.vertical-tab-layout .app-tab-scroll > * {