Skip to content

Commit

Permalink
style: avoid window controls overlay covering SiYuan toolbar buttons (#…
Browse files Browse the repository at this point in the history
…13771)

Since we already declares "window-controls-overlay" in our PWA manifest file, we also need to care about the actual place taken by the window controls overlay.

See also:

- https://web.dev/articles/window-controls-overlay

Resolve: #13226
  • Loading branch information
BLumia authored Jan 10, 2025
1 parent 7da5040 commit 675e59c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ html {

&--browser {
padding-left: 0;
margin-left: env(titlebar-area-x, 0);
width: env(titlebar-area-width, 100%);
height: env(titlebar-area-height, 32px);
}

#windowControls {
Expand Down

0 comments on commit 675e59c

Please sign in to comment.