From 0967623342ffa273e524bf7b124e4e2297feef43 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 6 Jun 2026 19:05:34 +0200 Subject: [PATCH] =?UTF-8?q?Hotfix:=20Routen-Filter=20oeffnete=20nicht=20?= =?UTF-8?q?=E2=80=94=20.hidden=20hat=20!important,=20style.display=20verlo?= =?UTF-8?q?r=20immer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kaputt seit 27a3f95 (2026-06-05, 'Filter standardmaessig zu' setzte die hidden-KLASSE ins Markup, der Toggle blieb aber auf style.display=''). .hidden = display:none !important (design-system.css) -> Klick wirkte nie. Import funktionierte weiter (Label+File-Input nativ) — dadurch gemeldet als 'Filter geht nicht mehr' (Angie + Rene). Fix: classList.toggle('hidden') im Toggle + konsistent im Suggest-Tab. Bump v1242 --- VERSION | 2 +- backend/static/index.html | 24 ++++++++++++------------ backend/static/js/app.js | 2 +- backend/static/js/pages/routes.js | 8 ++++++-- backend/static/landing.html | 2 +- backend/static/sw.js | 2 +- 6 files changed, 22 insertions(+), 18 deletions(-) diff --git a/VERSION b/VERSION index ca25bea..e90170d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1241 \ No newline at end of file +1242 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index 51aaa62..88c1392 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@ Ban Yaro - + - - - - - + + + + + @@ -612,11 +612,11 @@ - - - - - + + + + + @@ -626,7 +626,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 4203c8e..f3a7937 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 = '1241'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1242'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator) window.APP_VERSION = APP_VERSION; diff --git a/backend/static/js/pages/routes.js b/backend/static/js/pages/routes.js index 389424e..c458736 100644 --- a/backend/static/js/pages/routes.js +++ b/backend/static/js/pages/routes.js @@ -404,7 +404,10 @@ window.Page_routes = (() => { _filterOpen = !_filterOpen; const panel = document.getElementById('rk-filter-panel'); const btn = document.getElementById('rk-filter-btn'); - if (panel) panel.style.display = _filterOpen ? '' : 'none'; + // KLASSE toggeln, nicht style.display: .hidden hat display:none !important + // (design-system.css) — Inline-Style kommt dagegen nie an. Kaputt seit 27a3f95 + // („Filter standardmäßig zu" setzte die Klasse ins Markup, Toggle blieb auf style). + if (panel) panel.classList.toggle('hidden', !_filterOpen); if (btn) btn.classList.toggle('active', _filterOpen); } @@ -437,7 +440,8 @@ window.Page_routes = (() => { if (searchRow) searchRow.style.display = 'none'; if (actRow) actRow.style.display = 'none'; const filterPanel = document.getElementById('rk-filter-panel'); - if (filterPanel) filterPanel.style.display = 'none'; + if (filterPanel) { filterPanel.classList.add('hidden'); _filterOpen = false; } + document.getElementById('rk-filter-btn')?.classList.remove('active'); if (!App.hasPro(_appState?.user)) { document.getElementById('rk-list')?.replaceChildren(); const gate = document.createElement('div'); diff --git a/backend/static/landing.html b/backend/static/landing.html index 27ae14c..d45149b 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -4,7 +4,7 @@ - + Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz diff --git a/backend/static/sw.js b/backend/static/sw.js index dd85b33..31f22ab 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1241'; +const VER = '1242'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten