From 2a4581e9ba7e68c03e93c10248f3318ee435d29f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 10 Nov 2020 12:58:41 -0600 Subject: [PATCH] Hiding embed title if matches post title. Fixes #60 --- src/shared/components/iframely-card.tsx | 72 +++++++++++-------------- 1 file changed, 31 insertions(+), 41 deletions(-) diff --git a/src/shared/components/iframely-card.tsx b/src/shared/components/iframely-card.tsx index c62bf3d0..059cc63d 100644 --- a/src/shared/components/iframely-card.tsx +++ b/src/shared/components/iframely-card.tsx @@ -33,56 +33,46 @@ export class IFramelyCard extends Component<
-
- {post.embed_html ? ( - + {post.embed_title} - - ) : ( - - - {post.embed_title} - - - )} -
- - - {new URL(post.url).hostname} - - - - - {post.embed_html && ( - + , + + - {this.state.expanded ? '[-]' : '[+]'} - - )} - + {new URL(post.url).hostname} + + + + + , + ]} {post.embed_description && (
)} + {post.embed_html && ( + + )}