Fix: Welten Info-Cards — avatar_url statt foto_url, Hund-Name CSS-Grid 1fr-auto-1fr zentriert, SW by-v641

This commit is contained in:
rene 2026-05-03 10:26:14 +02:00
parent c266814aa9
commit 9410a8bcd4
4 changed files with 9 additions and 9 deletions

View file

@ -566,7 +566,7 @@
<script src="/js/api.js?v=94"></script> <script src="/js/api.js?v=94"></script>
<script src="/js/ui.js?v=94"></script> <script src="/js/ui.js?v=94"></script>
<script src="/js/app.js?v=94"></script> <script src="/js/app.js?v=94"></script>
<script src="/js/worlds.js?v=640"></script> <script src="/js/worlds.js?v=641"></script>
<!-- Feature-Seiten werden lazy geladen --> <!-- Feature-Seiten werden lazy geladen -->

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung. 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 APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app'; const IS_STAGING = location.hostname === 'staging.banyaro.app';

View file

@ -688,7 +688,7 @@ window.Worlds = (() => {
]; ];
// User-Avatar für JETZT Info-Card // 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 uInitial = firstName ? firstName.charAt(0).toUpperCase() : '?';
const userAvatarHtml = ` const userAvatarHtml = `
<div data-wnav="settings" style="flex-shrink:0;cursor:pointer" <div data-wnav="settings" style="flex-shrink:0;cursor:pointer"
@ -814,14 +814,14 @@ window.Worlds = (() => {
el.innerHTML = ` el.innerHTML = `
<div class="world-top"> <div class="world-top">
<div class="world-info-card"> <div class="world-info-card">
<div style="display:flex;align-items:center;gap:10px"> <div style="display:grid;grid-template-columns:1fr auto 1fr;align-items:center">
${dogAvatarHtml} <div style="justify-self:start">${dogAvatarHtml}</div>
<div id="wh-cycle-btn" style="flex:1;text-align:center; <div id="wh-cycle-btn" style="text-align:center;
cursor:${_dogs.length > 1 ? 'pointer' : 'default'};min-width:0"> cursor:${_dogs.length > 1 ? 'pointer' : 'default'};padding:0 8px">
<div class="world-info-title">${_esc(dog.name)}</div> <div class="world-info-title">${_esc(dog.name)}</div>
${stats ? `<div class="world-info-sub">${_esc(stats)}</div>` : ''} ${stats ? `<div class="world-info-sub">${_esc(stats)}</div>` : ''}
</div> </div>
${otherAvatarsHtml} <div style="justify-self:end;display:flex;align-items:center">${otherAvatarsHtml}</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache Offline-Cache + Push Notifications + Tile-Cache
============================================================ */ ============================================================ */
const CACHE_VERSION = 'by-v640'; const CACHE_VERSION = 'by-v641';
const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache