mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing image rendering
This commit is contained in:
@@ -324,7 +324,12 @@ export default function ListingDetail() {
|
|||||||
<Row>
|
<Row>
|
||||||
<Col span={24} lg={12}>
|
<Col span={24} lg={12}>
|
||||||
<div className="listing-detail__image-container">
|
<div className="listing-detail__image-container">
|
||||||
<Image src={listing.image_url || no_image} fallback={no_image} preview={true} />
|
<Image
|
||||||
|
src={listing.image_url}
|
||||||
|
fallback={no_image}
|
||||||
|
style={{ width: '100%', height: '100%' }}
|
||||||
|
preview={true}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24} lg={12}>
|
<Col span={24} lg={12}>
|
||||||
|
|||||||
@@ -378,7 +378,10 @@ export default function MapView() {
|
|||||||
|
|
||||||
const popupContent = `
|
const popupContent = `
|
||||||
<div class="map-popup-content">
|
<div class="map-popup-content">
|
||||||
<img src="${listing.image_url || no_image}" alt="${listing.title}" />
|
<img
|
||||||
|
src="${listing.image_url}"
|
||||||
|
onerror="this.onerror=null;this.src='${no_image}'"
|
||||||
|
/>
|
||||||
<h4>${listing.title}</h4>
|
<h4>${listing.title}</h4>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span><strong>Price:</strong> ${listing.price ? listing.price + ' €' : 'N/A'}</span>
|
<span><strong>Price:</strong> ${listing.price ? listing.price + ' €' : 'N/A'}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user