From b96302beeb67c2548b5177394dd193396642d0a9 Mon Sep 17 00:00:00 2001 From: Hailey <153161762+haileyok@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:24:17 -0800 Subject: [PATCH] improve external link design (#2577) * improve external link design * slight changes * use 1.91 aspect for images --- .../util/post-embeds/ExternalLinkEmbed.tsx | 44 ++++++++----------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx b/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx index af62aa2b..aaa98a41 100644 --- a/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx +++ b/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx @@ -29,22 +29,13 @@ export const ExternalLinkEmbed = ({ }, [link.uri, externalEmbedPrefs]) return ( - + {link.thumb && !embedPlayerParams ? ( - - - + ) : undefined} {(embedPlayerParams?.isGif && ( @@ -52,12 +43,7 @@ export const ExternalLinkEmbed = ({ (embedPlayerParams && ( ))} - + {!embedPlayerParams?.isGif && ( - + {link.title || link.uri} )} {link.description && !embedPlayerParams?.hideDetails ? ( {link.description} @@ -83,8 +69,16 @@ export const ExternalLinkEmbed = ({ } const styles = StyleSheet.create({ - extImage: { - flex: 1, + container: { + flexDirection: 'column', + borderRadius: 6, + overflow: 'hidden', + }, + info: { + width: '100%', + bottom: 0, + paddingTop: 8, + paddingBottom: 10, }, extUri: { marginTop: 2,