From 562d64979fee8e32e7dd0a1c745972a47e6aaeb9 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 16 May 2026 10:32:11 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Karte=20=E2=80=94=20Filter-Button=20mit?= =?UTF-8?q?=20Label,=20k=C3=BCrzere=20Chip-Texte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - #map-legend-all: 'Filter' Text neben dem List-Icon - 'Hundefreundl. Café/Restaurant' → 'Café & Restaurant' - 'Hundefreundl. Hotel' → 'Hotel' - .map-legend-all: padding angepasst für Text-Label - components.css ?v=1011, SW by-v1018, APP_VER 1018 --- backend/main.py | 2 +- backend/static/css/components.css | 3 +-- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/map.js | 5 +++-- backend/static/sw.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/main.py b/backend/main.py index 9dda1e8..06a5ec9 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 = "1017" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1018" # 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 22aa8d2..650e7be 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -3137,8 +3137,7 @@ html.modal-open { .map-legend-label { font-size: 10px; } .map-legend-all { font-size: 1rem; - min-width: 32px; - padding: 0 var(--space-2); + padding: 5px 10px; background: var(--c-surface-2); border-color: var(--c-border); color: var(--c-text-secondary); diff --git a/backend/static/index.html b/backend/static/index.html index 719055e..d44c6bf 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 7159773..0ba2634 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 = '1017'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1018'; // ← 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 9a2e0d5..ddfdb40 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -76,7 +76,7 @@ window.Page_map = (() => { // z: zIndexOffset — höher = weiter oben bei Überlappung const TYPEN = { - restaurant: { icon: '', label: 'Hundefreundl. Café/Restaurant', color: '#F97316', z: 10 }, + restaurant: { icon: '', label: 'Café & Restaurant', color: '#F97316', z: 10 }, freilauf: { icon: '', label: 'Freilauf', color: '#22C55E', z: 20 }, shop: { icon: '', label: 'Shop', color: '#3B82F6', z: 15 }, kotbeutel: { icon: '', label: 'Kotbeutel', color: '#84A98C', z: 5 }, @@ -93,7 +93,7 @@ window.Page_map = (() => { treffpunkt: { icon: '', label: 'Treffpunkt', color: '#7C3AED', z: 25 }, community: { icon: '', label: 'Sonstiges', color: '#F59E0B', z: 30 }, zuechter: { icon: '', label: 'Züchter', color: '#7C3AED', z: 50 }, - hotel: { icon: '', label: 'Hundefreundl. Hotel', color: '#0369a1', z: 20 }, + hotel: { icon: '', label: 'Hotel', color: '#0369a1', z: 20 }, }; // Frontend-Layer → Backend-Typ Mapping @@ -181,6 +181,7 @@ window.Page_map = (() => {
${Object.entries(TYPEN).filter(([k]) => k !== 'giftkoeder').map(([k, t]) => `