From: Dessalines Date: Tue, 10 Nov 2020 18:58:41 +0000 (-0600) Subject: Hiding embed title if matches post title. Fixes #60 X-Git-Url: http://these/git/%22%7Burl%7D/static/%22https:/nerdica.net/search?a=commitdiff_plain;h=2a4581e9ba7e68c03e93c10248f3318ee435d29f;p=lemmy-ui.git Hiding embed title if matches post title. Fixes #60 --- diff --git a/src/shared/components/iframely-card.tsx b/src/shared/components/iframely-card.tsx index c62bf3d..059cc63 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 && ( + + )}