镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix: enforce zoom limits on shortcuts and hide login scrollbar - #3569

Merged
setchy merged 2 commits into
mainfrom
fix/zoom-shortcut-limits
Oct 31, 2026
Merged

setchy merged 2 commits into
mainfrom
fix/zoom-shortcut-limits

Conversation

@setchy

@setchy setchy commented Oct 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Intercept Electron's native Cmd/Ctrl + +, -, 0 zoom accelerators and route them through Gitify's own zoom logic, so keyboard zoom uses the configured 10% step and respects the 0–120% bounds.
  • Clamp any other native zoom change (for example the Electron View menu or pinch zoom) back into range, and clamp out-of-range persisted zoom values on startup.
  • Hide the login screen's vertical scrollbar at high zoom while keeping the screen scrollable, and remove Primer's trailing paragraph margin so the forge tagline sits flush with the secondary auth methods.

Testing

  • pnpm check
  • pnpm test — 2015 tests passed
  • pnpm test:visual:update — 166 tests passed; login baselines refreshed

Notes

The Electron application menu still exposes its built-in Zoom In/Out items. Those continue to step natively, but the renderer sync now snaps them back to the supported range.

Electron's default menu handled Cmd/Ctrl +/-/0 with its own 0.5 zoom-level steps and ignored Gitify's 0-120% bounds. Intercept those shortcuts in the main process, forward them to the renderer, and reuse the app's 10% step and clamping. Also snap any other native zoom change back into range.
The fixed-height login screen can exceed the viewport once the interface is zoomed, which surfaced a vertical scrollbar over the centred composition. Keep the container scrollable but hide its scrollbar, and remove Primer's trailing paragraph margin so the forge tagline sits flush with the rest of the secondary content.
@setchy
setchy requested a review from afonsojramos as a code owner October 31, 2026 19:10
@github-actions github-actions Bot added the bug Something isn't working label Oct 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

@setchy
setchy merged commit e9da8ab into main Oct 31, 2026
19 checks passed
@setchy
setchy deleted the fix/zoom-shortcut-limits branch October 31, 2026 19:15
@github-actions github-actions Bot added this to the Release 8.0.0 milestone Oct 31, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in Gitify v8.0.0! 🎉

Downloads for macOS, Windows, and Linux are available on the release page.

Thanks for helping make Gitify better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant