From 6b56108ec40fa7dfd950a07f8e6995a592ec0f0d Mon Sep 17 00:00:00 2001 From: agoudbg Date: Wed, 5 Aug 2026 00:28:53 +0800 Subject: [PATCH] fix: exclude divider height from title bar overlay (#2054) --- src/main/window.ts | 2 +- src/renderer/src/App.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/window.ts b/src/main/window.ts index c545ca5c..d40f89ce 100644 --- a/src/main/window.ts +++ b/src/main/window.ts @@ -175,7 +175,7 @@ async function createWindowInternal(): Promise { titleBarOverlay: useWindowFrame ? false : { - height: 49 + height: 47 }, autoHideMenuBar: true, // Win 显式指定 icon,避免异常/恢复路径下任务栏与窗口图标依赖默认 exe diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 5baf6c8d..752f47a3 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -102,7 +102,7 @@ const App: React.FC = () => { const setTitlebar = useCallback((): void => { if (!useWindowFrame && platform !== 'darwin') { - const options = { height: 48 } as TitleBarOverlayOptions + const options = { height: 47 } as TitleBarOverlayOptions try { options.color = window.getComputedStyle(document.documentElement).backgroundColor options.symbolColor = window.getComputedStyle(document.documentElement).color