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(desktop): stabilize update download button width
二丫讲梵24691ccb1ee3
diff --git a/apps/desktop/src/components/layout/UpdateDialog.spec.ts b/apps/desktop/src/components/layout/UpdateDialog.spec.tsindex f8a0d8c5c9..d6499c860c 100644--- a/apps/desktop/src/components/layout/UpdateDialog.spec.ts+++ b/apps/desktop/src/components/layout/UpdateDialog.spec.ts@@ -172,6 +172,19 @@ describe("UpdateDialog active task guard", () => {});});+describe("UpdateDialog download progress", () => {+ it("keeps the downloading button at a fixed width as progress changes", async () => {+ const { state } = await mountDialog(0, { isDownloadingUpdate: true, downloadProgress: 9 });++ expect(buttonWithText("Downloading 9%")?.classList.contains("w-52")).toBe(true);++ state.downloadProgress = 100;+ await flushDialog();++ expect(buttonWithText("Downloading 100%")?.classList.contains("w-52")).toBe(true);+ });+});+describe("UpdateDialog close protection", () => {it("cancels the background download when the close button is clicked", async () => {const { state, cancelDownload } = await mountDialog(0, { isDownloadingUpdate: true, downloadProgress: 42 });diff --git a/apps/desktop/src/components/layout/UpdateDialog.vue b/apps/desktop/src/components/layout/UpdateDialog.vueindex 3c547cb9ab..b2d2c241c2 100644--- a/apps/desktop/src/components/layout/UpdateDialog.vue+++ b/apps/desktop/src/components/layout/UpdateDialog.vue@@ -144,7 +144,7 @@ watch(<Loader2 class="h-4 w-4 animate-spin" />{{ t("updates.installing") }}</Button>- <Button v-else-if="isDownloadingUpdate" disabled>+ <Button v-else-if="isDownloadingUpdate" class="w-52" disabled><Loader2 class="h-4 w-4 animate-spin" />{{ t("updates.downloading", { progress: downloadProgress }) }}</Button>