Skip to content

fix(window): high-DPI scaling + tighten Settings/About spacing (#238)#253

Merged
lshw54 merged 3 commits intocodefrom
fix/issue-238-dpi-scaling
Apr 26, 2026
Merged

fix(window): high-DPI scaling + tighten Settings/About spacing (#238)#253
lshw54 merged 3 commits intocodefrom
fix/issue-238-dpi-scaling

Conversation

@lshw54
Copy link
Copy Markdown
Collaborator

@lshw54 lshw54 commented Apr 26, 2026

What

On high-DPI displays (125%/150%), the window grows larger than the visible screen area. Buttons at the bottom (e.g. Settings "返回") get clipped off-screen. Reported across 4K 150%, 125% scaling, and laptop screens.

Also tightened Settings/About page spacing to reduce excess whitespace below the footer.

Changes

  • maxFitHeight caps at 80% of screen.availHeight instead of availHeight - 50 — scales proportionally for both 4K and 768p displays
  • Settings: scroll padding 1.5rem1rem 1.5rem, container gap 1rem0.75rem
  • About: scroll padding 1.5rem1rem 1.5rem, added lshw54 to credits

Closes #238

…ays (#238)

On high-DPI displays (125%/150%), the window could grow larger than
the visible screen area, clipping buttons off-screen. maxFitHeight
now uses 80% of availHeight instead of availHeight - 50.

Also reduced Settings and ManageAccount window size from 880x680 to
660x580 so they fit better on smaller/scaled displays.

Closes #238
@lshw54 lshw54 self-assigned this Apr 26, 2026
lshw54 added 2 commits April 26, 2026 14:10
…acing (#238)

- maxFitHeight uses availHeight * 0.8 instead of availHeight - 50
  so the window never clips off-screen on high-DPI displays
- Reduce Settings/About scroll padding and container gap to
  eliminate excess whitespace below the footer

Closes #238
@lshw54 lshw54 changed the title fix(window): cap fitWindow height to 80% of screen for high-DPI displays (#238) fix(window): high-DPI scaling + tighten Settings/About spacing (#238) Apr 26, 2026
@lshw54 lshw54 merged commit 9012770 into code Apr 26, 2026
3 checks passed
@lshw54 lshw54 deleted the fix/issue-238-dpi-scaling branch April 26, 2026 06:14
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.

[v5.9.4 Issues] UI layout broken on non-100% DPI & Performance issues in HK region windows文字縮放導致版面異常

1 participant