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(desktop): keep security migration wizard reachable in short windows

zipg215550bd0981
diff --git a/apps/desktop/src/components/migration/SecurityMigrationWizard.spec.ts b/apps/desktop/src/components/migration/SecurityMigrationWizard.spec.ts
index a90ba487ad..554e3d2201 100644
--- a/apps/desktop/src/components/migration/SecurityMigrationWizard.spec.ts
+++ b/apps/desktop/src/components/migration/SecurityMigrationWizard.spec.ts
@@ -18,6 +18,8 @@ describe("migration failure actions", () => {
const app = createApp(Wizard, { store });
app.mount(root);
try {
+ expect(root.querySelector("main")?.classList.contains("overflow-y-auto")).toBe(true);
+ expect(root.querySelector("section")?.classList.contains("my-auto")).toBe(true);
const button = (label: string) => Array.from(root.querySelectorAll("button")).find((b) => b.textContent === label)!;
expect(root.querySelector("textarea")?.value).toContain("statusFailed");
button("migration.exportDiagnostic").click();
diff --git a/apps/desktop/src/components/migration/SecurityMigrationWizard.vue b/apps/desktop/src/components/migration/SecurityMigrationWizard.vue
index 46f2a1eca0..fcd9882811 100644
--- a/apps/desktop/src/components/migration/SecurityMigrationWizard.vue
+++ b/apps/desktop/src/components/migration/SecurityMigrationWizard.vue
@@ -76,8 +76,8 @@ async function diagnostic() {
}
</script>
<template>
- <main class="fixed inset-0 z-[1000] flex items-center justify-center bg-background/95 p-6" role="dialog" aria-modal="true">
- <section class="w-full max-w-2xl rounded-xl border bg-card p-8 shadow-2xl">
+ <main class="fixed inset-0 z-[1000] flex items-center justify-center overflow-y-auto bg-background/95 p-4 sm:p-6" role="dialog" aria-modal="true">
+ <section class="my-auto w-full max-w-2xl rounded-xl border bg-card p-8 shadow-2xl">
<div class="mb-8 flex items-start justify-between gap-4">
<div>
<p class="text-xs font-medium uppercase tracking-wider text-muted-foreground">{{ t("migration.eyebrow") }}</p>