diff --git a/src/components/Map/MapView.jsx b/src/components/Map/MapView.jsx index 02aa34a..3bdbcf8 100644 --- a/src/components/Map/MapView.jsx +++ b/src/components/Map/MapView.jsx @@ -1456,6 +1456,9 @@ export default function MapView({ const galleryItems = draftMediaUrls.filter( (url) => url && url !== LINK_PREVIEW_PLACEHOLDER ); + const galleryThumbnails = galleryItems.slice( + galleryPreviewImage ? 1 : 0 + ); const isLinkMode = contentMode === "link"; return ( @@ -1718,14 +1721,14 @@ export default function MapView({ {formatPreviewDate(draftPublishedAt)} ) : null} - {galleryItems.length > 0 && ( -
- {galleryItems.map((url, idx) => ( + {galleryThumbnails.length > 0 && ( +
+ {galleryThumbnails.map((url, idx) => (
- {`Preview + {`Preview
))}