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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(docs): clear docs dialog close button overlap
jearhec258fe86be5a
diff --git a/apps/desktop/src/components/docs/DatabaseDocsDialog.vue b/apps/desktop/src/components/docs/DatabaseDocsDialog.vueindex 136f20ce2c..8509210f16 100644--- a/apps/desktop/src/components/docs/DatabaseDocsDialog.vue+++ b/apps/desktop/src/components/docs/DatabaseDocsDialog.vue@@ -207,7 +207,7 @@ watch(<template><Dialog v-model:open="open"><DialogContent class="w-[94vw] max-w-[94vw] sm:max-w-[94vw] md:max-w-[94vw] lg:max-w-[94vw] xl:max-w-[94vw] h-[86vh] max-h-[86vh] gap-0 p-0 overflow-hidden flex flex-col">- <DialogHeader class="px-4 py-3 border-b">+ <DialogHeader class="px-4 py-3 border-b pr-12"><DialogTitle class="flex items-center gap-2"><span>{{ t("docs.title") }}</span><span v-if="statusLabel" class="text-xs font-normal" :class="status.state === 'failed' ? 'text-destructive' : 'text-muted-foreground'">diff --git a/apps/desktop/src/components/docs/__tests__/DatabaseDocsDialogLayout.spec.ts b/apps/desktop/src/components/docs/__tests__/DatabaseDocsDialogLayout.spec.tsnew file mode 100644index 0000000000..05e452f164--- /dev/null+++ b/apps/desktop/src/components/docs/__tests__/DatabaseDocsDialogLayout.spec.ts@@ -0,0 +1,10 @@+import { readFileSync } from "node:fs";+import { describe, expect, it } from "vitest";++const dialogSource = readFileSync(new URL("../DatabaseDocsDialog.vue", import.meta.url), "utf8");++describe("DatabaseDocsDialog layout", () => {+ it("reserves header space for the absolute close button", () => {+ expect(dialogSource).toMatch(/<DialogHeader class="[^"]*\bpr-12\b[^"]*">/);+ });+});