feat: update PWA support and enhance responsive design
- Added PWA meta tags for improved iOS web app compatibility in index.html. - Updated app.css to refine responsive design, ensuring better layout handling on mobile devices. - Adjusted padding and height properties to accommodate safe area insets for a more polished user experience.
This commit is contained in:
1 parent
44f224e5d1
commit
6c87989863
7 files changed
+50
-9
No files matched your search
+15
-4
@@ -33,18 +33,28 @@
|
||||
html, body, #root { height: 100%; }
|
||||
body { font-family: var(--font); background: var(--bg); color: var(--text1); -webkit-text-size-adjust: 100%; }
|
||||
|
||||
.app-shell { display: flex; flex-direction: column; height: 100%; max-width: 600px; margin: 0 auto; }
|
||||
.app-shell { display: flex; flex-direction: column; min-height: 100%; min-height: 100dvh; max-width: 600px; margin: 0 auto; }
|
||||
.app-header {
|
||||
height: var(--header-h); display: flex; align-items: center; padding: 0 16px;
|
||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
}
|
||||
/* iPhone: Web-App (standalone) / Safari mit viewport-fit=cover — Kopf unter Statusleiste ausrichten */
|
||||
@media (max-width: 1023px) {
|
||||
.app-header.app-header--mobile {
|
||||
height: auto;
|
||||
min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
padding-left: max(16px, env(safe-area-inset-left, 0px));
|
||||
padding-right: max(16px, env(safe-area-inset-right, 0px));
|
||||
}
|
||||
}
|
||||
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
|
||||
/* unten: Tab-Leiste + Abstand nach oben zur Leiste + Home-Indicator (iPhone) */
|
||||
.app-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px 16px calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px);
|
||||
padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px) max(16px, env(safe-area-inset-left, 0px));
|
||||
}
|
||||
|
||||
.bottom-nav {
|
||||
@@ -66,7 +76,7 @@ body { font-family: var(--font); background: var(--bg); color: var(--text1); -we
|
||||
-ms-overflow-style: none;
|
||||
justify-content: flex-start;
|
||||
gap: 2px;
|
||||
padding: var(--nav-pad-top) 6px env(safe-area-inset-bottom, 0px);
|
||||
padding: var(--nav-pad-top) max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
|
||||
min-height: calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px));
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
@@ -2174,7 +2184,8 @@ a.analysis-split__nav-item {
|
||||
.app-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
min-height: 100dvh;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user