Set minimum Electron window size to prevent layout breaks

- Set minWidth to 1024px (matches Tailwind lg breakpoint)
- Set minHeight to 700px for adequate vertical space
- Prevents window from being resized to mobile single-column layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Henrik Bruhn 2025-12-11 12:43:10 +01:00
parent 0c15f67ef0
commit 675b0f2b4e

View file

@ -20,6 +20,8 @@ function createWindow() {
const mainWindow = new BrowserWindow({ const mainWindow = new BrowserWindow({
width: 1600, width: 1600,
height: 1000, height: 1000,
minWidth: 1024, // Prevent layout from breaking into single-column mobile view
minHeight: 700,
autoHideMenuBar: true, // Hide the menu bar (can be toggled with Alt key) autoHideMenuBar: true, // Hide the menu bar (can be toggled with Alt key)
webPreferences: { webPreferences: {
preload: join(__dirname, 'preload.js'), preload: join(__dirname, 'preload.js'),