feat: enable window-controls-overlay and make header draggable
All checks were successful
Deploy to Production / deploy (push) Successful in 7s

This commit is contained in:
2026-02-27 00:35:56 +00:00
parent 782786ec7e
commit 0037fcea0c
2 changed files with 11 additions and 0 deletions

View File

@@ -74,6 +74,11 @@ onMounted(() => {
border-right: none; border-right: none;
border-top: none; border-top: none;
border-radius: 0; border-radius: 0;
-webkit-app-region: drag; /* Allow dragging the window by the header */
/* Account for window controls overlay */
padding-left: max(1rem, env(titlebar-area-x));
padding-right: max(1rem, calc(100% - env(titlebar-area-x) - env(titlebar-area-width)));
padding-top: max(1rem, env(titlebar-area-height, 0px));
} }
.header-content { .header-content {
@@ -92,7 +97,12 @@ onMounted(() => {
gap: 1rem; gap: 1rem;
} }
.nav-btn {
-webkit-app-region: no-drag; /* Buttons must be clickable */
}
.menu-btn { .menu-btn {
-webkit-app-region: no-drag; /* Buttons must be clickable */
background: none; background: none;
border: none; border: none;
color: var(--text-color); color: var(--text-color);

View File

@@ -17,6 +17,7 @@ export default defineConfig({
theme_color: '#4facfe', theme_color: '#4facfe',
background_color: '#242424', background_color: '#242424',
display: 'standalone', display: 'standalone',
display_override: ['window-controls-overlay'],
orientation: 'portrait', orientation: 'portrait',
icons: [ icons: [
{ {