From df277e5977cb0b1f7e11c7e94265029f8e37ece4 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 3 Jan 2024 09:53:41 -0800 Subject: Multiple improvements to link cards and quote posts (#2398) * fix canvas * fix external link embed styles * Use the same link-card style on web and mobile and give a little more height on desktop to the card images * Use dark border on link embeds to match quote post style * Fix the highlighting behavior on linkcards and quoteposts --------- Co-authored-by: Hailey --- .../com/util/post-embeds/ExternalLinkEmbed.tsx | 40 ++++++---------------- 1 file changed, 11 insertions(+), 29 deletions(-) (limited to 'src/view/com/util/post-embeds/ExternalLinkEmbed.tsx') diff --git a/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx b/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx index 27aa804d3..1523dcf53 100644 --- a/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx +++ b/src/view/com/util/post-embeds/ExternalLinkEmbed.tsx @@ -23,29 +23,16 @@ export const ExternalLinkEmbed = ({ ) return ( - + {link.thumb && !embedPlayerParams ? ( + style={{ + borderTopLeftRadius: 6, + borderTopRightRadius: 6, + width: '100%', + height: isMobile ? 200 : 300, + overflow: 'hidden', + }}> {toNiceDomain(link.uri)} - + {link.title || link.uri} {link.description ? ( {link.description} @@ -90,8 +73,7 @@ export const ExternalLinkEmbed = ({ const styles = StyleSheet.create({ extImage: { - width: '100%', - height: 200, + flex: 1, }, extUri: { marginTop: 2, -- cgit 1.4.1