Unverified 提交 ba115605 authored 作者: Mohamed Aziz Mejri's avatar Mohamed Aziz Mejri 提交者: GitHub

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. -->
上级 6ee1a931
......@@ -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: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论