Counteract zoom-level changes in custom titlebar

This commit is contained in:
Fedor Indutny
2022-06-16 16:49:59 -07:00
committed by GitHub
parent aa23c2def2
commit 635aab838f
6 changed files with 32 additions and 12 deletions

View File

@@ -10,8 +10,10 @@
position: fixed;
top: 0;
left: 0;
width: 100%;
width: calc(100vw * var(--zoom-factor));
z-index: $z-index-window-controls;
transform: scale(calc(1 / var(--zoom-factor)));
transform-origin: 0 0;
// This matches the inline styles of frameless-titlebar
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,