fix(tabs): use table icon for mongo and redis tabs
This commit is contained in:
1 parent
c9203de1e7
commit
d28c21f433
1 file changed
+3
-3
@@ -185,7 +185,7 @@ function tabColorStyle(tab: QueryTab) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tabIconClass(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";
|
return "text-blue-600 dark:text-blue-400";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ const openTabMenuItems = computed(() =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
function tabMenuIcon(tab: QueryTab) {
|
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 === "etcd") return KeyRound;
|
||||||
if (tab.mode === "objects") return TableProperties;
|
if (tab.mode === "objects") return TableProperties;
|
||||||
if (tab.mode === "structure") return PencilRuler;
|
if (tab.mode === "structure") return PencilRuler;
|
||||||
@@ -294,7 +294,7 @@ function activateTab(tabId: string) {
|
|||||||
@mouseleave="tabDrag.clearTarget(tab.id)"
|
@mouseleave="tabDrag.clearTarget(tab.id)"
|
||||||
>
|
>
|
||||||
<span class="shrink-0" :class="tabIconClass(tab)">
|
<span class="shrink-0" :class="tabIconClass(tab)">
|
||||||
<Table2 v-if="tab.mode === 'data'" class="h-3.5 w-3.5" />
|
<Table2 v-if="tab.mode === 'data' || tab.mode === 'mongo' || tab.mode === 'redis'" class="h-3.5 w-3.5" />
|
||||||
<KeyRound v-else-if="tab.mode === 'etcd'" class="h-3.5 w-3.5" />
|
<KeyRound v-else-if="tab.mode === 'etcd'" class="h-3.5 w-3.5" />
|
||||||
<TableProperties v-else-if="tab.mode === 'objects'" class="h-3.5 w-3.5" />
|
<TableProperties v-else-if="tab.mode === 'objects'" class="h-3.5 w-3.5" />
|
||||||
<PencilRuler v-else-if="tab.mode === 'structure'" class="h-3.5 w-3.5" />
|
<PencilRuler v-else-if="tab.mode === 'structure'" class="h-3.5 w-3.5" />
|
||||||
|
|||||||
Reference in new issue
Block a user