fix(sidebar): wrap long names in delete dialog
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -171,7 +171,7 @@ watch(
|
|||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>{{ t("contextMenu.confirmDeleteTitle") }}</DialogTitle>
|
<DialogTitle>{{ t("contextMenu.confirmDeleteTitle") }}</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<p class="text-sm text-muted-foreground">
|
<p class="min-w-0 break-words text-sm text-muted-foreground [overflow-wrap:anywhere]">
|
||||||
{{ connectionDeleteConfirmMessage() }}
|
{{ connectionDeleteConfirmMessage() }}
|
||||||
</p>
|
</p>
|
||||||
<DialogFooter>
|
<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.equal(occurrences(connectionTree, "<SidebarTreeItemDialogs"), 1);
|
||||||
assert.doesNotMatch(treeItem, /<Dialog(?:\s|>)/);
|
assert.doesNotMatch(treeItem, /<Dialog(?:\s|>)/);
|
||||||
assert.doesNotMatch(treeItem, /<InstallExtensionDialog/);
|
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, /v-model:open="showCreateDatabaseDialog"/);
|
||||||
assert.match(dialogHost, /@click="showCreateDatabaseDialog = false"/);
|
assert.match(dialogHost, /@click="showCreateDatabaseDialog = false"/);
|
||||||
assert.match(dialogHost, /@click="confirmCreateDatabase"/);
|
assert.match(dialogHost, /@click="confirmCreateDatabase"/);
|
||||||
|
|||||||
Reference in new issue
Block a user