From 71b005c7a02c4634a37f599815b494af30951389 Mon Sep 17 00:00:00 2001 From: t8y2 Date: Wed, 30 Sep 2026 09:16:32 +0800 Subject: [PATCH] fix(sidebar): retain color for disconnected connection icons --- apps/desktop/src/components/sidebar/TreeItem.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/components/sidebar/TreeItem.vue b/apps/desktop/src/components/sidebar/TreeItem.vue index 99c0c75655..9ae9ac7810 100644 --- a/apps/desktop/src/components/sidebar/TreeItem.vue +++ b/apps/desktop/src/components/sidebar/TreeItem.vue @@ -968,9 +968,9 @@ const tableSearchValue = computed(() => { const isConnecting = computed(() => activeNode.value.type === "connection" && !!activeNode.value.connectionId && connectionStore.connectingIds.has(activeNode.value.connectionId)); -// Navicat-style activation cue: the connection icon itself is full color when -// connected and grayed out when not, complementing the trailing green dot. -const connectionIconInactiveClass = computed(() => (activeNode.value.type === "connection" && activeNode.value.connectionId && !connectionStore.connectedIds.has(activeNode.value.connectionId) ? "grayscale opacity-45" : "")); +// Keep disconnected connections visually subdued without stripping their +// database colors entirely; the trailing green dot still marks active ones. +const connectionIconInactiveClass = computed(() => (activeNode.value.type === "connection" && activeNode.value.connectionId && !connectionStore.connectedIds.has(activeNode.value.connectionId) ? "saturate-50 opacity-70" : "")); const isConnectionReadonly = computed(() => activeNode.value.type === "connection" && !!activeNode.value.connectionId && (connectionStore.getConfig(activeNode.value.connectionId)?.read_only ?? false));