Skip to content

Commit

Permalink
size properly for screen
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jun 26, 2024
1 parent 1460bb5 commit b83a7c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const createMainWindow = async () => {
fullscreen: isOverlayUi,
resizable: false,
}
: { width: 550, height: 750, maxWidth: 800 }),
: {
width: 550,
height: Math.min(screen.getPrimaryDisplay().workAreaSize.height - 50, 750),
maxWidth: 800,
}),
show: false,
...(isOverlayUi && { transparent: true }),
backgroundColor: "#1a202c",
Expand Down

0 comments on commit b83a7c3

Please sign in to comment.