From ba115605b5c46f986134255a8e85e77c01056750 Mon Sep 17 00:00:00 2001 From: Mohamed Aziz Mejri Date: Sat, 6 Sep 2025 07:59:07 +0100 Subject: [PATCH] Set minimum window size to prevent UI breakage (#1195) This PR solves issue #1194 by setting a minimum height and width --- ## Summary by cubic Set a minimum window size to prevent UI breakage when the app is resized too small. The BrowserWindow now enforces minWidth 800 and minHeight 500 so layouts stay stable and controls remain accessible. --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 3f00dd1..8052e8f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -133,7 +133,9 @@ const createWindow = () => { // Create the browser window. mainWindow = new BrowserWindow({ width: process.env.NODE_ENV === "development" ? 1280 : 960, + minWidth: 800, height: 700, + minHeight: 500, titleBarStyle: "hidden", titleBarOverlay: false, trafficLightPosition: {