diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-09-20 20:47:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 14:47:28 -0500 |
commit | 79a2f8d5280230a125b42c60bbb5b9e4be4f9109 (patch) | |
tree | 5eb115f1ecbde98e3a541a497dc683e44f295169 /src/view/com/util/post-embeds/index.tsx | |
parent | c85a271ef63ac006bf10f71adae102552298b661 (diff) | |
download | voidsky-79a2f8d5280230a125b42c60bbb5b9e4be4f9109.tar.zst |
Increase rounding for all embeds (#5421)
* tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/index.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx index b4a6cf825..090577a5e 100644 --- a/src/view/com/util/post-embeds/index.tsx +++ b/src/view/com/util/post-embeds/index.tsx @@ -138,7 +138,7 @@ export function PostEmbeds({ const image = images[0] return ( <ContentHider modui={moderation?.ui('contentMedia')}> - <View style={[styles.container, style]}> + <View style={[a.mt_sm, style]}> <AutoSizedImage crop={ viewContext === PostEmbedViewContext.ThreadHighlighted @@ -162,7 +162,7 @@ export function PostEmbeds({ return ( <ContentHider modui={moderation?.ui('contentMedia')}> - <View style={[styles.container, style]}> + <View style={[a.mt_sm, style]}> <ImageLayoutGrid images={embed.images} onPress={_openLightbox} @@ -184,7 +184,7 @@ export function PostEmbeds({ <ExternalLinkEmbed link={link} onOpen={onOpen} - style={[styles.container, style]} + style={[a.mt_sm, style]} /> </ContentHider> ) @@ -247,9 +247,6 @@ function MaybeListCard({view}: {view: AppBskyGraphDefs.ListView}) { } const styles = StyleSheet.create({ - container: { - marginTop: 8, - }, altContainer: { backgroundColor: 'rgba(0, 0, 0, 0.75)', borderRadius: 6, |