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(sidebar): wrap long names in delete dialog

t8y220334dc9289c
diff --git a/apps/desktop/src/components/sidebar/SidebarTreeItemDialogs.vue b/apps/desktop/src/components/sidebar/SidebarTreeItemDialogs.vue
index 00938c471f..e40c231b46 100644
--- a/apps/desktop/src/components/sidebar/SidebarTreeItemDialogs.vue
+++ b/apps/desktop/src/components/sidebar/SidebarTreeItemDialogs.vue
@@ -171,7 +171,7 @@ watch(
<DialogHeader>
<DialogTitle>{{ t("contextMenu.confirmDeleteTitle") }}</DialogTitle>
</DialogHeader>
- <p class="text-sm text-muted-foreground">
+ <p class="min-w-0 break-words text-sm text-muted-foreground [overflow-wrap:anywhere]">
{{ connectionDeleteConfirmMessage() }}
</p>
<DialogFooter>
diff --git a/packages/app-tests/sidebarDialogRouting.test.ts b/packages/app-tests/sidebarDialogRouting.test.ts
index 5116d6a25e..e1df37f9b7 100644
--- a/packages/app-tests/sidebarDialogRouting.test.ts
+++ b/packages/app-tests/sidebarDialogRouting.test.ts
@@ -33,6 +33,7 @@ test("remaining form dialogs render once at tree level and keep confirm/cancel b
assert.equal(occurrences(connectionTree, "<SidebarTreeItemDialogs"), 1);
assert.doesNotMatch(treeItem, /<Dialog(?:\s|>)/);
assert.doesNotMatch(treeItem, /<InstallExtensionDialog/);
+ assert.match(dialogHost, /<p class="min-w-0 break-words text-sm text-muted-foreground \[overflow-wrap:anywhere\]">\s*\{\{ connectionDeleteConfirmMessage\(\) \}\}/);
assert.match(dialogHost, /v-model:open="showCreateDatabaseDialog"/);
assert.match(dialogHost, /@click="showCreateDatabaseDialog = false"/);
assert.match(dialogHost, /@click="confirmCreateDatabase"/);