diff --git a/VERSION b/VERSION index 29001eb..b5811ff 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1206 \ No newline at end of file +1207 \ No newline at end of file diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 366d2f7..9f996ab 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -6754,15 +6754,6 @@ html.modal-open { margin-bottom: 2px; } -/* OSM-Attribution unter der Karte */ -.lost-map-attribution { - font-size: 10px; - color: var(--c-text-secondary); - text-align: right; - padding: 2px var(--space-2) 0; - margin-bottom: var(--space-4); -} - /* Info-Zeile über der Liste ("X vermisste Hunde …") */ .lost-info-text { font-size: var(--text-sm); diff --git a/backend/static/index.html b/backend/static/index.html index 55377a3..9bf8a7b 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 676179c..d1d6ff9 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 = '1206'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1207'; // ← 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/map-gl-mini.js b/backend/static/js/map-gl-mini.js index 820f846..5afd176 100644 --- a/backend/static/js/map-gl-mini.js +++ b/backend/static/js/map-gl-mini.js @@ -244,6 +244,7 @@ map.addControl(new maplibregl.AttributionControl({ compact: true, customAttribution: '© OpenStreetMap contributors', })); + MapGLStyle.collapseAttribution(map); // nur ⓘ, nicht ausgeschrieben // Container kann beim Erstellen (Modal/Animation) noch 0×0 sein → mehrfach resizen. var _rz = function () { try { map.resize(); } catch (e) {} }; requestAnimationFrame(_rz); diff --git a/backend/static/js/map-gl-style.js b/backend/static/js/map-gl-style.js index 839192c..7fcf803 100644 --- a/backend/static/js/map-gl-style.js +++ b/backend/static/js/map-gl-style.js @@ -141,5 +141,20 @@ }; } - window.MapGLStyle = { build: build, tilesUrl: tilesUrl, tilesFile: TILES_FILE }; + // Compact-Attribution standardmäßig EINGEKLAPPT lassen (nur das ⓘ; der volle Text + // "© OpenStreetMap contributors" erscheint erst auf Klick). MapLibre rendert sie sonst + // offen (Klasse maplibregl-compact-show + open). Rechtlich reicht das ⓘ (ODbL). + function collapseAttribution(map) { + var fn = function () { + try { + var a = map.getContainer().querySelector('.maplibregl-ctrl-attrib'); + if (a) { a.classList.remove('maplibregl-compact-show'); a.removeAttribute('open'); } + } catch (e) {} + }; + fn(); + if (typeof requestAnimationFrame === 'function') requestAnimationFrame(fn); + setTimeout(fn, 60); + } + + window.MapGLStyle = { build: build, tilesUrl: tilesUrl, tilesFile: TILES_FILE, collapseAttribution: collapseAttribution }; })(); diff --git a/backend/static/js/pages/lost.js b/backend/static/js/pages/lost.js index 92769b3..30d18e5 100644 --- a/backend/static/js/pages/lost.js +++ b/backend/static/js/pages/lost.js @@ -107,13 +107,9 @@ window.Page_lost = (() => {
-
- © OpenStreetMap-Mitwirkende -

OpenStreetMap contributors', })); + MapGLStyle.collapseAttribution(_map); // nur ⓘ, nicht ausgeschrieben if (!_userPos) { _frankfurtTimer = setTimeout(() => _mapFlyTo(50.1109, 8.6821, 14, { duration: 2.5 }), 1200); diff --git a/backend/static/js/pages/poison.js b/backend/static/js/pages/poison.js index cd9e642..8ae1bb1 100644 --- a/backend/static/js/pages/poison.js +++ b/backend/static/js/pages/poison.js @@ -61,13 +61,9 @@ window.Page_poison = (() => {

-
- © OpenStreetMap-Mitwirkende -
diff --git a/backend/static/landing.html b/backend/static/landing.html index 91b71b8..4f46967 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 07cb52e..49882fb 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 = '1206'; +const VER = '1207'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten