From e44414015a064f19f116456682e8f278d34339b7 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 16 May 2026 10:39:12 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Karte=20=E2=80=94=20Zoom-Ausrichtung,=20?= =?UTF-8?q?'Z14'=20k=C3=BCrzer,=20Marker-Count=20ausgeblendet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - leaflet-top padding-top 28→33px (Zoom-Buttons mittig zu 2 Filter-Reihen) - Zoom-Anzeige: 'Zoom 14 · ab 14: alle Layer' → 'Z14' (Hinweis als title) - #map-osm-status ausgeblendet (Marker-Anzahl nimmt Platz von Wetter etc.) - components.css ?v=1012, SW by-v1019, APP_VER 1019 --- backend/main.py | 2 +- backend/static/css/components.css | 4 ++-- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/map.js | 8 ++++---- backend/static/sw.js | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend/main.py b/backend/main.py index 06a5ec9..fba8210 100644 --- a/backend/main.py +++ b/backend/main.py @@ -410,7 +410,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "1018" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1019" # 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 650e7be..6152da2 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -3087,8 +3087,8 @@ html.modal-open { } @media (min-width: 768px) { .map-full-layout { top: 0; left: var(--nav-sidebar-width); bottom: 0; } - /* Zoom-Control und Filter-Tabs unter die Statusleiste schieben */ - .map-full-layout .leaflet-top { padding-top: 28px; } + /* Zoom-Control vertikal zentriert zu beiden Filter-Reihen */ + .map-full-layout .leaflet-top { padding-top: 33px; } } .map-full { width: 100%; height: 100%; } diff --git a/backend/static/index.html b/backend/static/index.html index d44c6bf..cc2f242 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -103,7 +103,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 0ba2634..39a86c4 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 = '1018'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1019'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← 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/map.js b/backend/static/js/pages/map.js index ddfdb40..1a97df8 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -216,7 +216,7 @@ window.Page_map = (() => {
- + ·
@@ -619,9 +619,9 @@ window.Page_map = (() => { const z = Math.round(_map.getZoom()); const el = document.getElementById('map-zoom-info'); if (!el) return; - if (z < 10) { el.textContent = `Zoom ${z} · ab 10: Giftköder`; el.style.opacity = '0.5'; } - else if (z < 14) { el.textContent = `Zoom ${z} · ab 14: alle Layer`; el.style.opacity = '0.7'; } - else { el.textContent = `Zoom ${z}`; el.style.opacity = '1'; } + if (z < 10) { el.textContent = `Z${z}`; el.title = 'Ab Z10: Giftköder'; el.style.opacity = '0.5'; } + else if (z < 14) { el.textContent = `Z${z}`; el.title = 'Ab Z14: alle Layer'; el.style.opacity = '0.7'; } + else { el.textContent = `Z${z}`; el.title = ''; el.style.opacity = '1'; } } function _setOsmStatus(text, pct = null) { diff --git a/backend/static/sw.js b/backend/static/sw.js index 1be78c2..56f221f 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-v1018'; +const CACHE_VERSION = 'by-v1019'; 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