fix: KöPi - Bild auto-height, warte auf alle Bilder vor Screenshot

This commit is contained in:
2026-07-09 12:00:22 +02:00
parent 5c05a2fc7d
commit 2a06e93e90
2 changed files with 9 additions and 3 deletions

View File

@@ -36,9 +36,9 @@ function OfferCard({ offer }) {
}}>
{/* Bild oben, volle Breite */}
{offer.image && (
<div style={{ margin:'-12px -14px 8px -14px', height:180, background:'#111', borderRadius:'8px 8px 0 0', overflow:'hidden', display:'flex', alignItems:'center', justifyContent:'center' }}>
<div style={{ margin:'-12px -14px 8px -14px', borderRadius:'8px 8px 0 0', overflow:'hidden', background:'#1a1a1a', display:'flex', alignItems:'center', justifyContent:'center' }}>
<img src={offer.image} alt="König Pilsener"
style={{ maxWidth:'100%', maxHeight:'100%', objectFit:'contain' }}
style={{ width:'100%', height:'auto', display:'block' }}
onError={e => { e.target.parentElement.style.display='none'; }}
/>
</div>