feat(desktop): add minimum window size constraints

Set minWidth: 500 and minHeight: 520 to prevent UI breakage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing
2026-02-11 18:51:18 +08:00
parent bbf91a98ca
commit 3d25aa96f4

View File

@@ -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: {