Counteract zoom-level changes in custom titlebar

This commit is contained in:
Fedor Indutny
2022-06-20 11:26:31 -07:00
committed by GitHub
parent dacbee711f
commit 9407654262
12 changed files with 123 additions and 34 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,