Thumbnails row only below preview
This commit is contained in:
parent
d6238e46bc
commit
da1af00aaa
|
|
@ -1456,6 +1456,9 @@ export default function MapView({
|
||||||
const galleryItems = draftMediaUrls.filter(
|
const galleryItems = draftMediaUrls.filter(
|
||||||
(url) => url && url !== LINK_PREVIEW_PLACEHOLDER
|
(url) => url && url !== LINK_PREVIEW_PLACEHOLDER
|
||||||
);
|
);
|
||||||
|
const galleryThumbnails = galleryItems.slice(
|
||||||
|
galleryPreviewImage ? 1 : 0
|
||||||
|
);
|
||||||
const isLinkMode = contentMode === "link";
|
const isLinkMode = contentMode === "link";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -1718,14 +1721,14 @@ export default function MapView({
|
||||||
<span>{formatPreviewDate(draftPublishedAt)}</span>
|
<span>{formatPreviewDate(draftPublishedAt)}</span>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
{galleryItems.length > 0 && (
|
{galleryThumbnails.length > 0 && (
|
||||||
<div className="create-gallery-row create-gallery-overlay">
|
<div className="create-gallery-row">
|
||||||
{galleryItems.map((url, idx) => (
|
{galleryThumbnails.map((url, idx) => (
|
||||||
<figure
|
<figure
|
||||||
key={`${url}-${idx}`}
|
key={`${url}-${idx}`}
|
||||||
className="create-gallery-item create-gallery-static"
|
className="create-gallery-item create-gallery-static"
|
||||||
>
|
>
|
||||||
<img src={url} alt={`Preview image ${idx + 1}`} />
|
<img src={url} alt={`Preview image ${idx + 2}`} />
|
||||||
</figure>
|
</figure>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue