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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 12 deletions

View file

@ -171,6 +171,12 @@ export const TitleBarContainer = (props: PropsType): JSX.Element => {
opacity: 0,
},
},
// Zoom support
enableOverflow: false,
scalingFunction(value: string) {
return `calc(${value} * var(--zoom-factor))`;
},
};
return (