Fix draft image pres with 4+ images (#10765)

This commit is contained in:
Eric Bailey
2026-06-06 09:55:39 -05:00
committed by GitHub
parent b9cd7e992a
commit 7577933378
2 changed files with 13 additions and 5 deletions
+9 -3
View File
@@ -326,9 +326,15 @@ function DraftMediaPreview({post}: {post: DraftPostDisplay}) {
}
return (
<MediaPreview.Outer>
<View style={[a.flex_row, a.flex_wrap, {marginLeft: -4, marginRight: -4}]}>
{loadedImages.map((image, i) => (
<MediaPreview.ImageItem key={i} thumbnail={image.url} alt={image.alt} />
<View key={i} style={[a.p_2xs, {width: '20%'}]}>
<MediaPreview.ImageItem
thumbnail={image.url}
alt={image.alt}
maxWidth={999}
/>
</View>
))}
{post.gif && (
<MediaPreview.GifItem thumbnail={post.gif.url} alt={post.gif.alt} />
@@ -339,6 +345,6 @@ function DraftMediaPreview({post}: {post: DraftPostDisplay}) {
alt={post.video.altText}
/>
)}
</MediaPreview.Outer>
</View>
)
}