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

@ -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';

View file

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