Skip to content

Commit

Permalink
tweak top padding external (#4755)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Jul 9, 2024
1 parent a3c43a7 commit ca0a327
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/view/com/util/post-embeds/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand All @@ -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>
)
}
Expand All @@ -183,7 +187,7 @@ export function PostEmbeds({
}

const styles = StyleSheet.create({
imagesContainer: {
container: {
marginTop: 8,
},
altContainer: {
Expand Down

0 comments on commit ca0a327

Please sign in to comment.