feat(pwa): implement window controls overlay for desktop
This commit is contained in:
parent
24eb0c4e49
commit
f123efabdb
2 changed files with 22 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
||||||
"description": "A minimalist music streaming application",
|
"description": "A minimalist music streaming application",
|
||||||
"start_url": "/",
|
"start_url": "/",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
|
"display_override": [
|
||||||
|
"window-controls-overlay"
|
||||||
|
],
|
||||||
"background_color": "#000000",
|
"background_color": "#000000",
|
||||||
"theme_color": "#000000",
|
"theme_color": "#000000",
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
|
|
|
||||||
19
styles.css
19
styles.css
|
|
@ -2812,3 +2812,22 @@ input:checked + .slider::before {
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Window Controls Overlay */
|
||||||
|
@media (display-mode: window-controls-overlay) {
|
||||||
|
.app-container {
|
||||||
|
margin-top: env(titlebar-area-height, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-header {
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-header * {
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
padding-top: max(1.5rem, env(titlebar-area-height, 0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue