From 3bbfafa9e58d8a9559a967f99898ec7e8f1692d6 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Sun, 24 Aug 2025 21:01:25 +0300 Subject: [PATCH] Set minimum windows boundaries --- frontend/electron/main.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/frontend/electron/main.ts b/frontend/electron/main.ts index 379237f..4fab3df 100644 --- a/frontend/electron/main.ts +++ b/frontend/electron/main.ts @@ -1,15 +1,17 @@ import { app, BrowserWindow } from 'electron'; app.whenReady().then(() => { - const win = new BrowserWindow({ - title: 'Main window', - }) + const win = new BrowserWindow({ + title: 'Main window', + minWidth: 650, + minHeight: 420 + }) - // You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve` - if (process.env.VITE_DEV_SERVER_URL) { - win.loadURL(process.env.VITE_DEV_SERVER_URL) - } else { - // Load your file - win.loadFile('dist/index.html'); - } + // You can use `process.env.VITE_DEV_SERVER_URL` when the vite command is called `serve` + if (process.env.VITE_DEV_SERVER_URL) { + win.loadURL(process.env.VITE_DEV_SERVER_URL) + } else { + // Load your file + win.loadFile('dist/index.html'); + } }); \ No newline at end of file