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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
feat(tabs): use database logo for sql editor tab icons
t8y286bdf9f78ade
diff --git a/apps/desktop/src/components/layout/TabModeIcon.vue b/apps/desktop/src/components/layout/TabModeIcon.vueindex 348dbd737f..14c3551877 100644--- a/apps/desktop/src/components/layout/TabModeIcon.vue+++ b/apps/desktop/src/components/layout/TabModeIcon.vue@@ -41,5 +41,6 @@ defineProps<{ tab: QueryTab }>();<Gauge v-else-if="tab.mode === 'dolt-version-control'" /><PluginIcon v-else-if="tab.mode === 'plugin-workbench' && tab.pluginWorkbench" :plugin-id="tab.pluginWorkbench.pluginId" :contribution-id="tab.pluginWorkbench.contributionId" /><PluginIcon v-else-if="tab.mode === 'plugin-filesystem' && tab.pluginFilesystem" :plugin-id="tab.pluginFilesystem.pluginId" :contribution-id="tab.pluginFilesystem.providerId" />+ <DatabaseIcon v-else-if="tab.mode === 'query'" :db-type="tabDatabaseIconType(tab)" /><Code2 v-else /></template>diff --git a/apps/desktop/src/lib/tabs/tabPresentation.ts b/apps/desktop/src/lib/tabs/tabPresentation.tsindex 6daaa7978d..252a4b61c0 100644--- a/apps/desktop/src/lib/tabs/tabPresentation.ts+++ b/apps/desktop/src/lib/tabs/tabPresentation.ts@@ -631,6 +631,9 @@ export function tabIconClass(tab: QueryTab): string {if (tab.mode === "mongo") return "text-green-400";if (tab.mode === "vector") return "text-cyan-400";if (tab.mode === "structure") return "text-blue-500";+ // query 的图标是数据库品牌 logo(TabModeIcon),不吃文字颜色;回退的+ // Database 图标自带 text-blue-400,与 mq 模式同样返回空串。+ if (tab.mode === "query") return "";return "text-blue-600 dark:text-blue-400";}