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。

feat(ContentArea): enhance tab display with improved styling for table name and database info

t8y27a71c4866d6d
diff --git a/src/components/layout/ContentArea.vue b/src/components/layout/ContentArea.vue
index 8125716827..88fc8b1223 100644
--- a/src/components/layout/ContentArea.vue
+++ b/src/components/layout/ContentArea.vue
@@ -219,8 +219,14 @@ const hasNumericData = computed(() => {
<Table2 class="h-3.5 w-3.5" />
{{ t("tabs.tableData") }}
</span>
- <span class="font-medium truncate">{{ activeTab.tableMeta?.tableName || activeTab.title }}</span>
- <span class="text-muted-foreground truncate">
+ <span
+ class="inline-flex items-center rounded border border-border bg-muted/50 px-2 py-0.5 font-medium truncate"
+ >
+ {{ activeTab.tableMeta?.tableName || activeTab.title }}
+ </span>
+ <span
+ class="inline-flex items-center rounded border border-border bg-muted/30 px-2 py-0.5 text-muted-foreground truncate"
+ >
{{ databaseDisplayNameForTab(activeTab.connectionId, activeTab.database) }}
<template v-if="activeTab.tableMeta?.schema"> &middot; {{ activeTab.tableMeta.schema }}</template>
</span>