Set minimum window size to prevent UI breakage (#1195)

This PR solves issue #1194 by setting a minimum height and width
    
<!-- This is an auto-generated description by cubic. -->
---

## 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.

<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Mohamed Aziz Mejri
2025-09-06 07:59:07 +01:00
committed by GitHub
parent 6ee1a93187
commit ba115605b5

View File

@@ -133,7 +133,9 @@ const createWindow = () => {
// Create the browser window. // Create the browser window.
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: process.env.NODE_ENV === "development" ? 1280 : 960, width: process.env.NODE_ENV === "development" ? 1280 : 960,
minWidth: 800,
height: 700, height: 700,
minHeight: 500,
titleBarStyle: "hidden", titleBarStyle: "hidden",
titleBarOverlay: false, titleBarOverlay: false,
trafficLightPosition: { trafficLightPosition: {