Commit 83959b2
committed
fix(frontend): stop zoom menubar from resizing on zoom change
The canvas zoom control had no left padding (the percentage nearly
touched the edge) and its width tracked the label length, so the
menubar expanded and contracted as the zoom value changed (e.g. '200%'
is wider than '96%').
Give the zoom label a fixed width sized for the widest value ('200%' at
MAX_ZOOM=2), left padding, and tabular-nums so digit widths stay
constant. The chevron and adjacent controls now hold position across
the full 25%-200% zoom range.1 parent 15bf10d commit 83959b2
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments