fix: KöPi - Bilder als Base64, Adresse statisch, Duplikate zusammengefasst

This commit is contained in:
2026-07-09 01:30:38 +02:00
parent f3418e51ac
commit a9973a8a07
2 changed files with 57 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ function OfferCard({ offer }) {
{offer.image && (
<div style={{ height:160, background:'#f5f5f5', display:'flex', alignItems:'center', justifyContent:'center', flexShrink:0, overflow:'hidden', position:'relative' }}>
<img
src={`/api/tools/koepi/img?url=${encodeURIComponent(offer.image)}`}
src={offer.image}
alt="König Pilsener"
style={{ maxHeight:'100%', maxWidth:'100%', objectFit:'contain' }}
onError={e => { e.target.parentElement.style.display='none'; }}