tweak top padding external (#4755)

zio/stable
Hailey 2024-07-08 18:16:34 -07:00 committed by GitHub
parent a3c43a7471
commit ca0a327052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 4 deletions

View File

@ -131,7 +131,7 @@ export function PostEmbeds({
const {alt, thumb, aspectRatio} = images[0]
return (
<ContentHider modui={moderation?.ui('contentMedia')}>
<View style={[styles.imagesContainer, style]}>
<View style={[styles.container, style]}>
<AutoSizedImage
alt={alt}
uri={thumb}
@ -156,7 +156,7 @@ export function PostEmbeds({
return (
<ContentHider modui={moderation?.ui('contentMedia')}>
<View style={[styles.imagesContainer, style]}>
<View style={[styles.container, style]}>
<ImageLayoutGrid
images={embed.images}
onPress={_openLightbox}
@ -174,7 +174,11 @@ export function PostEmbeds({
const link = embed.external
return (
<ContentHider modui={moderation?.ui('contentMedia')}>
<ExternalLinkEmbed link={link} onOpen={onOpen} style={style} />
<ExternalLinkEmbed
link={link}
onOpen={onOpen}
style={[styles.container, style]}
/>
</ContentHider>
)
}
@ -183,7 +187,7 @@ export function PostEmbeds({
}
const styles = StyleSheet.create({
imagesContainer: {
container: {
marginTop: 8,
},
altContainer: {