Repository navigation
Zoom the title bar with the app and unstick the zoom pill - #416
Merged
Merged
Conversation
TitleBar was counter-zoomed (zoom: 1/scale) to stay at 100% like an OS title bar, so at 200% its menus, workspace switcher, window buttons and the macOS tab strip were half the size of the UI under them, and the sidebar's top row (fixed --app-titlebar-h) overflowed its own buttons. The bar now zooms; --app-titlebar-h is 38px/36px x --app-scale; the macOS traffic-light spacer stays a fixed 78px because the OS draws the lights at a fixed size; Windows caption buttons scale their 46px width with the height. ZoomIndicator kept a hovered flag that only pointerleave cleared. When that event never came (Reset unmounting under the pointer, focus loss, the pill opening under a still pointer) the hide timer never fired again. It now checks :hover when the timer fires, and Reset, Escape, an outside click and window blur close it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These are two zoom bugs found while testing the 3.7.6 nightly at 200% on Linux.
The title bar stayed at 100%.
TitleBar.sveltecounter-zoomed itself withzoom: 1/scale. At 200%, the menus, workspace switcher and window buttons stayed half the size of the UI under them, and on macOS so did the open tabs, which sit inside that bar. The sidebar's top row used a fixed 36px or 38px--app-titlebar-h, which its ownh-9buttons overflowed.--app-titlebar-his38px(macOS) or36pxtimes--app-scale, so the sidebar header, inset pages and the bar stay level.The zoom pill stuck on screen.
ZoomIndicator.sveltekept ahoveredflag that onlypointerleavecleared. Whenever that event never came, the hide timer stopped firing for good. That happened when Reset unmounted under the pointer, when the window lost focus, or when the pill opened under a still pointer.:hoverwhen it fires. Reset, Escape, a click elsewhere and window blur close the pill, and it sits just under the title bar.Testing
npm testpasses (2003 node tests, 20 DOM tests),svelte-checkshows 0 errors, the design lint has no new violations, and the build passes.