Mobile Views jetzt als PWA

This commit is contained in:
concierge committed 2026-10-29 08:08:23 +01:00
1 parent d8692ab20e
commit b41c3bc3a6
11 files changed
+785 -37

No files matched your search

+48 -6
View File
@@ -25,6 +25,17 @@ body.mobile-page {
background: var(--mobile-bg);
color: var(--mobile-text);
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
overflow: hidden;
overscroll-behavior: none;
}
/* Die Basis-Template-Hülle (main.container) darf bei den mobilen Views
keinen Rand und keine Innenabstände belegen. */
body.mobile-page main.container {
width: 100%;
max-width: none;
margin: 0;
padding: 0;
}
.mobile-app {
@@ -39,6 +50,7 @@ body.mobile-page {
background: var(--mobile-card);
border-bottom: 1px solid var(--mobile-border);
padding: 0.4rem 0.6rem;
padding-top: calc(0.4rem + env(safe-area-inset-top));
}
.mobile-header-row {
@@ -132,7 +144,7 @@ body.mobile-page {
.mobile-fab {
position: absolute;
right: 0.7rem;
bottom: 5.5rem;
bottom: calc(5.5rem + env(safe-area-inset-bottom));
width: 3rem;
height: 3rem;
border-radius: 50%;
@@ -149,7 +161,7 @@ body.mobile-page {
}
.mobile-fab-secondary {
bottom: 9rem;
bottom: calc(9rem + env(safe-area-inset-bottom));
background: var(--mobile-card);
color: var(--mobile-text);
border: 1px solid var(--mobile-border);
@@ -160,7 +172,7 @@ body.mobile-page {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 1rem;
bottom: calc(1rem + env(safe-area-inset-bottom));
border-radius: 999px;
background: var(--mobile-card);
color: var(--mobile-text);
@@ -219,6 +231,7 @@ html[data-theme="dark"] .mobile-chat-card.own {
display: flex;
gap: 0.4rem;
padding: 0.5rem 0.6rem;
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
background: var(--mobile-card);
border-top: 1px solid var(--mobile-border);
}
@@ -270,6 +283,28 @@ html[data-theme="dark"] .mobile-chat-card.own {
font-size: 0.85rem;
}
.mobile-settings-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
margin-bottom: 0.6rem;
}
.mobile-settings-button {
width: auto;
margin: 0;
padding: 0.35rem 0.8rem;
border-radius: 999px;
font-size: 0.85rem;
}
.mobile-settings-button.is-active {
background: var(--mobile-accent);
border-color: var(--mobile-accent);
color: #fff;
}
.mobile-user-marker {
position: relative;
width: 16px;
@@ -315,12 +350,19 @@ html[data-theme="dark"] .mobile-chat-card.own {
@media (max-width: 420px) {
.mobile-work-btn {
bottom: 0.8rem;
bottom: calc(0.8rem + env(safe-area-inset-bottom));
}
.mobile-fab {
bottom: 5.2rem;
bottom: calc(5.2rem + env(safe-area-inset-bottom));
}
.mobile-fab-secondary {
bottom: 8.6rem;
bottom: calc(8.6rem + env(safe-area-inset-bottom));
}
}
/* Im installierten Standalone-Modus keine Browserleisten berücksichtigen. */
@media (display-mode: standalone) {
body.mobile-page {
height: 100dvh;
}
}