fix(sidebar): wrap long names in delete dialog
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"/);
|
||||
|
||||
Reference in New Issue
Block a user