fix(sidebar): wrap long names in delete dialog

This commit is contained in:
t8y2
2026-08-02 18:13:31 +08:00
parent 8efe83aaa1
commit 20334dc928
2 changed files with 2 additions and 1 deletions
@@ -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>
+1
View File
@@ -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"/);