mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 02:13:41 +00:00
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:
parent
0c15f67ef0
commit
675b0f2b4e
1 changed files with 2 additions and 0 deletions
|
|
@ -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'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue