fix: added a minWidth and minHeight in app window

This commit is contained in:
José Luís 2024-04-14 22:34:38 -03:00
parent c4baf815cf
commit b2e2d937b2

View File

@ -16,6 +16,8 @@ export class WindowManager {
this.mainWindow = new BrowserWindow({ this.mainWindow = new BrowserWindow({
width: 1200, width: 1200,
height: 720, height: 720,
minWidth: 1024,
minHeight: 540,
titleBarStyle: "hidden", titleBarStyle: "hidden",
icon: path.join(__dirname, "..", "..", "images", "icon.png"), icon: path.join(__dirname, "..", "..", "images", "icon.png"),
trafficLightPosition: { x: 16, y: 16 }, trafficLightPosition: { x: 16, y: 16 },