Repository navigation
Zoom and enhance - #1720
Zoom and enhance#1720
Conversation
clientRect doesn't work well with zoom
It seems to be more exact and apparently it does more or less the same thing
I.e 110% 125% 150% 175% and 200%
|
This is ready for review now. The only remaining issue we have is that certain zoom levels on Windows (or rather on 100% DPI monitors) will cause a rounding issue with our file list items that cause the list item border to disappear. This is temporary and goes away as soon as you resize the sidebar or switch between history/changes so I don't think it's worth holding up this PR for. It might fix itself with newer version of Chromium. A workaround would be for us to bump the list item height from 29px to 30px such that the rounding error doesn't occur but I didn't want to do that without talking to @donokuda first as he put in a lot of time to arrive at that 29px height. |
joshaber
left a comment
There was a problem hiding this comment.
Just a nit, otherwise looks great 😍
| */ | ||
| readonly windowState: WindowState | ||
|
|
||
| /** |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| font-weight: var(--font-weight-semibold); | ||
|
|
||
| // This is so sad but CodeMirror uses z-indexes like crazy | ||
| // and we need to make sure we stay above all of that. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🐨 |
This enables zooming of the app along the same zoom scale that Chrome supports (110%, 125%, 150%, 175% and 200%)
cc #1646, #1547
Fixes #1217