From 7bea16d63d6fccfe66418b2dbabfe18d2b05d029 Mon Sep 17 00:00:00 2001 From: meowtec Date: Tue, 15 May 2018 00:07:31 +0800 Subject: [PATCH] Fix width of window --- modules/backend/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/backend/app.ts b/modules/backend/app.ts index 2665507..72cb215 100644 --- a/modules/backend/app.ts +++ b/modules/backend/app.ts @@ -61,8 +61,10 @@ class App { } createWindow() { + const baseWidth = 800 + const win = new BrowserWindow({ - width: os.platform() === 'darwin' ? 800 : 834, + width: baseWidth + (os.platform() === 'darwin' ? 15 : 34), height: 600, minWidth: 540, // titleBarStyle: 'hidden',