diff --git a/backend/main.py b/backend/main.py index c975351..4d926d3 100644 --- a/backend/main.py +++ b/backend/main.py @@ -447,7 +447,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "880" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "881" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 0509d07..325fc8b 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -3539,6 +3539,50 @@ html.modal-open { #walks-map-view { overflow: hidden; } + +/* ── Desktop ≥1024px: Liste links, Karte rechts nebeneinander ── */ +@media (min-width: 1024px) { + /* Tab-Treffen: horizontal splitten */ + #walks-tab-treffen { + flex-direction: row; + overflow: hidden; + } + /* Toolbar über beiden Spalten → eigene Zeile */ + #walks-tab-treffen .by-toolbar { + position: absolute; + top: 0; + left: 0; + right: 0; + z-index: 10; + background: var(--c-bg); + border-bottom: 1px solid var(--c-border); + padding: var(--space-2) var(--space-4); + } + /* Platz für die fixe Toolbar oben */ + #walks-tab-treffen { + padding-top: 52px; + position: relative; + } + /* Liste: feste Breite links, scrollbar */ + #walks-list-view { + display: block !important; + width: 380px; + min-width: 320px; + flex-shrink: 0; + border-right: 1px solid var(--c-border); + overflow-y: auto; + } + /* Karte: Rest des Platzes, sticky */ + #walks-map-view { + display: block !important; + flex: 1; + min-width: 0; + } + /* Liste/Karte-Toggle auf Desktop ausblenden */ + .walks-view-toggle { + display: none; + } +} .walks-participant { display: flex; align-items: center; diff --git a/backend/static/index.html b/backend/static/index.html index 8711e3b..c8c7ecf 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + + @@ -583,10 +583,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 9c39ece..c016b1a 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '880'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '881'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/walks.js b/backend/static/js/pages/walks.js index 2f2fab5..d925a29 100644 --- a/backend/static/js/pages/walks.js +++ b/backend/static/js/pages/walks.js @@ -55,6 +55,8 @@ window.Page_walks = (() => { _container = container; _appState = appState; _render(); + // Desktop: Leaflet sofort laden damit Karte bereit ist wenn Daten kommen + if (window.innerWidth >= 1024) UI.loadLeaflet(); try { _userPos = await API.getLocation(); } catch {} _loadData(); } @@ -101,8 +103,9 @@ window.Page_walks = (() => {

Lädt…

- - diff --git a/backend/static/sw.js b/backend/static/sw.js index ba02203..8ed2cc1 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v880'; +const CACHE_VERSION = 'by-v881'; 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