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(schema-diff): keep deploy confirmation actions visible

Melody Ruchf92497b3d329
diff --git a/apps/desktop/src/components/diff/SchemaDiffDialog.vue b/apps/desktop/src/components/diff/SchemaDiffDialog.vue
index 2e7a36f6d2..cf7e3507d7 100644
--- a/apps/desktop/src/components/diff/SchemaDiffDialog.vue
+++ b/apps/desktop/src/components/diff/SchemaDiffDialog.vue
@@ -1026,7 +1026,7 @@ const targetConnectionInfo = computed(() => {
</DialogTitle>
</DialogHeader>
- <div class="py-2 space-y-3">
+ <div class="py-2 space-y-3 min-w-0">
<p class="text-sm text-muted-foreground">{{ t("diff.deployConfirmMessage") }}</p>
<div class="bg-muted p-3 rounded text-xs font-mono space-y-1">
diff --git a/apps/desktop/src/components/diff/__tests__/SchemaDiffDialog.spec.ts b/apps/desktop/src/components/diff/__tests__/SchemaDiffDialog.spec.ts
index 2c63897413..5246200afb 100644
--- a/apps/desktop/src/components/diff/__tests__/SchemaDiffDialog.spec.ts
+++ b/apps/desktop/src/components/diff/__tests__/SchemaDiffDialog.spec.ts
@@ -22,4 +22,8 @@ describe("SchemaDiffDialog fullscreen layout", () => {
expect(dialogSource).toContain("event.preventDefault();");
expect(dialogSource).toContain("showOptionsPanel.value = false;");
});
+
+ it("lets the deploy confirm dialog body shrink so a long destructive statement can't push the footer buttons off-screen", () => {
+ expect(dialogSource).toContain('<div class="py-2 space-y-3 min-w-0">');
+ });
});