From 760ab51d7bd880818bcddd95a32e26e97deaac7c Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Thu, 1 Jan 2026 15:48:46 +0800 Subject: [PATCH] :bug: Fix(custom): fix a bug that the update progress bar not show --- eslint.config.js | 2 -- src/renderer/components/ui/TitleBar.vue | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index ce6fd1ac..8d4a3c44 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -28,7 +28,6 @@ export default defineConfig( globals: { ...globals.browser, ...globals.node, - Office: 'readonly', }, }, }, @@ -45,7 +44,6 @@ export default defineConfig( globals: { ...globals.browser, ...globals.node, - Office: 'readonly', }, }, }, diff --git a/src/renderer/components/ui/TitleBar.vue b/src/renderer/components/ui/TitleBar.vue index 1d2fd867..68e60e4a 100644 --- a/src/renderer/components/ui/TitleBar.vue +++ b/src/renderer/components/ui/TitleBar.vue @@ -153,13 +153,18 @@ onBeforeUnmount(() => { display: flex; align-items: center; gap: 8px; - max-width: 200px; + width: 100%; + min-width: 100px; + max-width: 600px; } .progress-bar { overflow: hidden; border-radius: 2px; - height: 4px; + width: 100%; + min-width: 100px; + max-width: 600px; + height: 14px; background: var(--color-border); flex: 1; }