Fix: Nav als Flex-Kind in #app{height:100dvh} — kein position:fixed, Desktop-Scroll repariert, SW by-v534
This commit is contained in:
parent
03508f8aa3
commit
9506eea0d9
4 changed files with 49 additions and 54 deletions
|
|
@ -14,24 +14,22 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Content-Bereich scrollt intern */
|
||||
/* Content-Bereich scrollt intern — kein padding-bottom nötig da Nav Flex-Kind */
|
||||
#page-content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-y: none; /* verhindert iOS-Bounce → fixed Nav bleibt stabil */
|
||||
padding-bottom: calc(var(--nav-bottom-height) + var(--safe-bottom) + 16px);
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
|
||||
/* Vollbild-Seiten: #page-content kein Scroll */
|
||||
body.page-fullscreen #page-content {
|
||||
overflow: hidden;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* Desktop: normaler Dokumentfluss, Sidebar-Layout */
|
||||
/* Desktop: window-scroll, Sidebar-Layout */
|
||||
@media (min-width: 768px) {
|
||||
#app {
|
||||
height: auto;
|
||||
|
|
@ -40,8 +38,10 @@ body.page-fullscreen #page-content {
|
|||
flex-direction: row;
|
||||
}
|
||||
#page-content {
|
||||
flex: unset;
|
||||
min-height: unset;
|
||||
overflow-y: visible;
|
||||
overflow-x: visible;
|
||||
padding-bottom: 0;
|
||||
padding-left: var(--nav-sidebar-width);
|
||||
}
|
||||
|
|
@ -174,13 +174,9 @@ body.page-fullscreen #page-content {
|
|||
3. BOTTOM NAVIGATION (Mobile)
|
||||
------------------------------------------------------------ */
|
||||
#bottom-nav {
|
||||
/* position:fixed relativ zum Viewport — da #app kein transform hat,
|
||||
ist dies stabil. Scroll passiert in #page-content (overflow-y:auto),
|
||||
nicht im window → kein iOS-Drift. */
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
/* Flex-Kind von #app{height:100dvh} — kein position:fixed nötig.
|
||||
100dvh auf iOS inkludiert Safe Areas → Nav endet am physischen Rand. */
|
||||
flex-shrink: 0;
|
||||
z-index: 700;
|
||||
min-height: calc(var(--nav-bottom-height) + var(--safe-bottom));
|
||||
padding-top: var(--space-1);
|
||||
|
|
|
|||
|
|
@ -434,10 +434,7 @@
|
|||
|
||||
</main>
|
||||
|
||||
|
||||
</div><!-- #app -->
|
||||
|
||||
<!-- MOBILE BOTTOM NAVIGATION — außerhalb #app damit position:fixed zum echten Viewport -->
|
||||
<!-- MOBILE BOTTOM NAVIGATION — Flex-Kind von #app (height:100dvh) -->
|
||||
<nav id="bottom-nav" role="navigation" aria-label="Hauptnavigation">
|
||||
<div class="nav-item" data-page="map">
|
||||
<svg class="ph-icon" aria-hidden="true"><use href="/icons/phosphor.svg#map-trifold"></use></svg>
|
||||
|
|
@ -461,6 +458,8 @@
|
|||
</div>
|
||||
</nav>
|
||||
|
||||
</div><!-- #app -->
|
||||
|
||||
<!-- TOAST CONTAINER (außerhalb der App, immer sichtbar) -->
|
||||
<div class="toast-container" id="toast-container" role="alert" aria-live="polite"></div>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '510'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '511'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.0.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v533';
|
||||
const CACHE_VERSION = 'by-v534';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue