Thumbnails row only below preview

This commit is contained in:
Your Name 2026-01-02 12:54:04 -05:00
parent d6238e46bc
commit da1af00aaa
1 changed files with 7 additions and 4 deletions

View File

@ -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({
<span>{formatPreviewDate(draftPublishedAt)}</span>
) : null}
</div>
{galleryItems.length > 0 && (
<div className="create-gallery-row create-gallery-overlay">
{galleryItems.map((url, idx) => (
{galleryThumbnails.length > 0 && (
<div className="create-gallery-row">
{galleryThumbnails.map((url, idx) => (
<figure
key={`${url}-${idx}`}
className="create-gallery-item create-gallery-static"
>
<img src={url} alt={`Preview image ${idx + 1}`} />
<img src={url} alt={`Preview image ${idx + 2}`} />
</figure>
))}
</div>