From d28c21f4332dd6ea5ffc62239939c9ef2e83d731 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 11 Jun 2026 01:39:25 +0800 Subject: [PATCH] fix(tabs): use table icon for mongo and redis tabs --- apps/desktop/src/components/layout/AppTabBar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/components/layout/AppTabBar.vue b/apps/desktop/src/components/layout/AppTabBar.vue index e39d273da4..8f97644d83 100644 --- a/apps/desktop/src/components/layout/AppTabBar.vue +++ b/apps/desktop/src/components/layout/AppTabBar.vue @@ -185,7 +185,7 @@ function tabColorStyle(tab: QueryTab) { } function tabIconClass(tab: QueryTab) { - if (tab.mode === "data" || tab.mode === "objects" || tab.mode === "structure") return "text-emerald-600 dark:text-emerald-400"; + if (tab.mode === "data" || tab.mode === "mongo" || tab.mode === "redis" || tab.mode === "objects" || tab.mode === "structure") return "text-emerald-600 dark:text-emerald-400"; return "text-blue-600 dark:text-blue-400"; } @@ -202,7 +202,7 @@ const openTabMenuItems = computed(() => ); function tabMenuIcon(tab: QueryTab) { - if (tab.mode === "data") return Table2; + if (tab.mode === "data" || tab.mode === "mongo" || tab.mode === "redis") return Table2; if (tab.mode === "etcd") return KeyRound; if (tab.mode === "objects") return TableProperties; if (tab.mode === "structure") return PencilRuler; @@ -294,7 +294,7 @@ function activateTab(tabId: string) { @mouseleave="tabDrag.clearTarget(tab.id)" > - +