fix: Aufgeklappte Verlauf-Karte mit großem Hero-Bild; Buttons nicht mehr am Rand

This commit is contained in:
Andre
2026-04-14 17:43:20 +02:00
parent c7582dafbb
commit d08dc94010
3 changed files with 13 additions and 0 deletions
+9
View File
@@ -427,6 +427,15 @@ function buildHistoryCard(entry) {
bodyInner.appendChild(stepsSection);
}
// Hero-Bild im aufgeklappten Zustand (vor bodyInner einfügen)
if (imageUrl) {
const heroImg = document.createElement('img');
heroImg.className = 'recipe-image';
heroImg.src = imageUrl;
heroImg.alt = '';
heroImg.onerror = () => heroImg.remove();
body.appendChild(heroImg);
}
body.appendChild(bodyInner);
// Actions