File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,12 @@ export default function ListingDetail() {
324324 < Row >
325325 < Col span = { 24 } lg = { 12 } >
326326 < div className = "listing-detail__image-container" >
327- < Image src = { listing . image_url || no_image } fallback = { no_image } preview = { true } />
327+ < Image
328+ src = { listing . image_url }
329+ fallback = { no_image }
330+ style = { { width : '100%' , height : '100%' } }
331+ preview = { true }
332+ />
328333 </ div >
329334 </ Col >
330335 < Col span = { 24 } lg = { 12 } >
Original file line number Diff line number Diff line change @@ -378,7 +378,10 @@ export default function MapView() {
378378
379379 const popupContent = `
380380 <div class="map-popup-content">
381- <img src="${ listing . image_url || no_image } " alt="${ listing . title } " />
381+ <img
382+ src="${ listing . image_url } "
383+ onerror="this.onerror=null;this.src='${ no_image } '"
384+ />
382385 <h4>${ listing . title } </h4>
383386 <div class="info">
384387 <span><strong>Price:</strong> ${ listing . price ? listing . price + ' €' : 'N/A' } </span>
You can’t perform that action at this time.
0 commit comments