Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Calculates window size as 80% of primary display dimensions instead of using fixed 1600×1000 size.

Uses Electron's screen.getPrimaryDisplay().workArea to detect available screen space (excluding taskbars/menubars), then sizes the window to 80% of that space with a minimum floor of 1200×800 for smaller displays.

Examples:

  • 1920×1080 display → 1536×864 window
  • 2560×1440 display → 2048×1152 window
  • 3840×2160 display (4K) → 3072×1728 window

Generated with cmux

Calculate window size as 80% of primary display dimensions with
minimum floor of 1200x800. Uses Electron's screen API to detect
workArea (excludes taskbars/menubars).

_Generated with `cmux`_
@ammario ammario added this pull request to the merge queue Oct 19, 2025
Merged via the queue into main with commit 5aefd57 Oct 19, 2025
8 checks passed
@ammario ammario deleted the remember-size branch October 19, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants