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。

fix: add copy table name to context menu and reduce comment width

t8y22d4628a7e1f9
diff --git a/apps/desktop/src/components/sidebar/TreeItem.vue b/apps/desktop/src/components/sidebar/TreeItem.vue
index 462de1b8a6..21a94ed892 100644
--- a/apps/desktop/src/components/sidebar/TreeItem.vue
+++ b/apps/desktop/src/components/sidebar/TreeItem.vue
@@ -1899,7 +1899,7 @@ const isDragging = computed(() => dragState.active && dragState.draggedId === pr
}}</span>
<span
v-if="tableComment"
- class="truncate text-muted-foreground/60 text-[10px] max-w-[50%] group-hover:hidden"
+ class="truncate text-muted-foreground/60 text-[10px] max-w-[25%] group-hover:hidden"
:title="tableComment"
>{{ tableComment }}</span
>
@@ -2085,6 +2085,8 @@ const isDragging = computed(() => dragState.active && dragState.draggedId === pr
</template>
<template v-if="node.type === 'table' || node.type === 'view'">
+ <ContextMenuItem @click="copyName"> <Copy class="w-4 h-4" /> {{ t("contextMenu.copyName") }} </ContextMenuItem>
+ <ContextMenuSeparator />
<ContextMenuItem @click="openData">
<TableProperties class="w-4 h-4" /> {{ t("contextMenu.viewData") }}
</ContextMenuItem>