diff --git a/VERSION b/VERSION index 14ffac1..6a565cf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1138 \ No newline at end of file +1139 \ No newline at end of file diff --git a/backend/static/css/components.css b/backend/static/css/components.css index ebeb6d2..1f724ec 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -2838,6 +2838,7 @@ html.modal-open { overflow: hidden; background: #e8f0e8; flex-shrink: 0; + position: relative; } .rk-preview-empty { display: flex; diff --git a/backend/static/index.html b/backend/static/index.html index 6b4255f..6f4b310 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@ Ban Yaro - + - - - - - + + + + + @@ -617,11 +617,11 @@ - - - - - + + + + + @@ -631,7 +631,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 4559a01..61463a3 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 = '1138'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1139'; // ← 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 0c2295e..0f4e1af 100644 --- a/backend/static/js/pages/routes.js +++ b/backend/static/js/pages/routes.js @@ -1411,12 +1411,29 @@ window.Page_routes = (() => { const paws = HUNDE_LABEL[r.hunde_tauglichkeit] || ''; const dist = r.distanz_km ? `${r.distanz_km.toFixed(1)} km` : ''; const dur = r.dauer_min ? _fmtDur(r.dauer_min) : ''; - const firstPhoto = (r.foto_urls || [])[0]; - const previewContent = firstPhoto - ? `` - : `
`; + // Immer die Karte zeigen — Fotos erst beim Öffnen der Route. + // Bei Routen mit Fotos einen kleinen Kamera-Marker oben rechts + // einblenden (analog zum Tagebuch). + const photoCount = (r.foto_urls || []).length; + const photoBadge = photoCount > 0 + ? `
+ + ${photoCount} +
` + : ''; + const previewContent = ` + ${photoBadge} +
`; const authorLine = isDiscover ? `
${UI.icon('user')} ${UI.escape(r.user_name||'Anonym')}
` diff --git a/backend/static/landing.html b/backend/static/landing.html index 77781cb..be3033b 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 7139244..ef97c13 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 = '1138'; +const VER = '1139'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten