Skip to content

fix(desktop): fit the window and shell to a MacBook screen - #2882

Closed
PhamThanhTu612002 wants to merge 1 commit into
maxrave-dev:devfrom
PhamThanhTu612002:fix/desktop-macbook-window
Closed

PhamThanhTu612002 wants to merge 1 commit into
maxrave-dev:devfrom
PhamThanhTu612002:fix/desktop-macbook-window

Conversation

@PhamThanhTu612002

Copy link
Copy Markdown

Window: it opened off-centre and past the screen edges. The minimum size was multiplied by the display scale, but AWT sizes are already in points, so Retina turned 900x560 into 1800x1120, larger than the screen, and AWT grew the window to it. The minimum is now 900x560, the opening size is 85% of the usable area, and the position is centred.

Green button: it only zoomed to the usable area. macOS native full screen does not resize a borderless window, so the window is sized to the screen from code instead (MacFillScreen), with the menu bar and Dock hidden through NSApplication presentationOptions. Double-clicking the title bar still zooms. Corners are square while the window touches the screen edges.

Shell: on a narrow window the sidebar folds on its own without rewriting the stored preference, the side Now Playing panel yields to the fullscreen player below 960dp and keeps a floor for the content beside it, and the floating mini player capsule shrinks with the window instead of spilling past the sidebar edge.

What & why

Linked issue

Closes #

Checklist

  • This PR addresses an accepted issue (linked above)
  • I wrote or personally reviewed every line of this change
  • I tested it on Android and/or Desktop (say which, and how)

Window: it opened off-centre and past the screen edges. The minimum size was multiplied by the
display scale, but AWT sizes are already in points, so Retina turned 900x560 into 1800x1120, larger
than the screen, and AWT grew the window to it. The minimum is now 900x560, the opening size is 85%
of the usable area, and the position is centred.

Green button: it only zoomed to the usable area. macOS native full screen does not resize a
borderless window, so the window is sized to the screen from code instead (MacFillScreen), with the
menu bar and Dock hidden through NSApplication presentationOptions. Double-clicking the title bar
still zooms. Corners are square while the window touches the screen edges.

Shell: on a narrow window the sidebar folds on its own without rewriting the stored preference, the
side Now Playing panel yields to the fullscreen player below 960dp and keeps a floor for the content
beside it, and the floating mini player capsule shrinks with the window instead of spilling past the
sidebar edge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the ai-slop Unattended AI-generated submission, closed by triage label Nov 14, 2026
@github-actions

Copy link
Copy Markdown

One or more commits in this PR carry an AI co-author trailer or agent marker (e.g. Co-Authored-By: Claude/Copilot/…), which this project does not accept — a leftover trailer usually means the output was never personally reviewed. If a human does stand behind this change: squash your commits without the AI trailers, force-push, complete the PR template, and reopen. See CONTRIBUTING.md.

Strike 0/2 for this account — at 2 it is blocked from this repository automatically.

@github-actions github-actions Bot closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-slop Unattended AI-generated submission, closed by triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant