From 3d25aa96f48851e73f2b0759644ae70e661b42a6 Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Wed, 11 Feb 2026 18:51:18 +0800 Subject: [PATCH] feat(desktop): add minimum window size constraints Set minWidth: 500 and minHeight: 520 to prevent UI breakage. Co-Authored-By: Claude Opus 4.5 --- apps/desktop/src/main/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.ts index 46170ef4f..f9cfb17b4 100644 --- a/apps/desktop/src/main/index.ts +++ b/apps/desktop/src/main/index.ts @@ -73,6 +73,8 @@ function createWindow() { win = new BrowserWindow({ width: 1200, height: 800, + minWidth: 500, + minHeight: 520, titleBarStyle: 'hiddenInset', trafficLightPosition: { x: 16, y: 17 }, // Vertically centered in 48px header webPreferences: {