Window controls overlay (#837)

* Update main.scss

Make page header a title bar

* Update manifest.json

Allow custom titlebar

* Resize page header so it won't overlap titlebar controls
pull/866/head
s1gnate-sync 2024-05-14 10:49:10 +01:00 committed by GitHub
parent f683a4570a
commit 4390f6ebc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,7 @@
"capture_links": "new-client", "capture_links": "new-client",
"start_url": "/#boot", "start_url": "/#boot",
"display": "standalone", "display": "standalone",
"display_override": ["window-controls-overlay"],
"scope": "/", "scope": "/",
"theme_color": "#e1e1e1", "theme_color": "#e1e1e1",
"description": "Markdown as a platform" "description": "Markdown as a platform"

View File

@ -70,7 +70,7 @@ body {
flex-direction: row; flex-direction: row;
.wrapper { .wrapper {
width: 100%; width: env(titlebar-area-width, 100%);
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
@ -103,6 +103,8 @@ body {
text-align: left; text-align: left;
display: block; display: block;
-webkit-app-region: drag;
.cm-scroller { .cm-scroller {
font-family: var(--ui-font); font-family: var(--ui-font);
} }
@ -227,4 +229,4 @@ body {
margin: 0; margin: 0;
} }
} }
} }