From 9410a8bcd4b629cde3980e8e64fb89f3a55f81ba Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 3 May 2026 10:26:14 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Welten=20Info-Cards=20=E2=80=94=20avatar?= =?UTF-8?q?=5Furl=20statt=20foto=5Furl,=20Hund-Name=20CSS-Grid=201fr-auto-?= =?UTF-8?q?1fr=20zentriert,=20SW=20by-v641?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/worlds.js | 12 ++++++------ backend/static/sw.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/static/index.html b/backend/static/index.html index e52f1aa..0cc63ca 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -566,7 +566,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 1b287ad..5ae66ae 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 = '640'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '641'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/worlds.js b/backend/static/js/worlds.js index 043d2bd..3b96a26 100644 --- a/backend/static/js/worlds.js +++ b/backend/static/js/worlds.js @@ -688,7 +688,7 @@ window.Worlds = (() => { ]; // User-Avatar für JETZT Info-Card - const uFoto = _state?.user?.foto_url; + const uFoto = _state?.user?.avatar_url; const uInitial = firstName ? firstName.charAt(0).toUpperCase() : '?'; const userAvatarHtml = `
{ el.innerHTML = `
-
- ${dogAvatarHtml} -
+
+
${dogAvatarHtml}
+
${_esc(dog.name)}
${stats ? `
${_esc(stats)}
` : ''}
- ${otherAvatarsHtml} +
${otherAvatarsHtml}
diff --git a/backend/static/sw.js b/backend/static/sw.js index c79f28f..030a8be 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-v640'; +const CACHE_VERSION = 'by-v641'; 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