diff options
author | Dessalines <tyhou13@gmx.com> | 2020-03-07 20:01:31 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-03-07 20:01:31 -0500 |
commit | 54762b601d216b22fbc93fa9cca9e0f92c3c45be (patch) | |
tree | 70743b9f40507ff8390932a284dca4b5e2c739e5 /ui/src/components/iframely-card.tsx | |
parent | 5396cb2f5cc565c46d4fc79f5d6204f379d5089f (diff) |
Iframely card now opens embed on title if available.
Diffstat (limited to 'ui/src/components/iframely-card.tsx')
-rw-r--r-- | ui/src/components/iframely-card.tsx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/ui/src/components/iframely-card.tsx b/ui/src/components/iframely-card.tsx index 0d56a0b6..3a89023f 100644 --- a/ui/src/components/iframely-card.tsx +++ b/ui/src/components/iframely-card.tsx @@ -34,11 +34,21 @@ export class IFramelyCard extends Component< <div class="col-12"> <div class="card-body"> <h5 class="card-title d-inline"> - <span> - <a class="text-body" target="_blank" href={post.url}> + {post.embed_html ? ( + <span + class="unselectable pointer" + onClick={linkEvent(this, this.handleIframeExpand)} + data-tippy-content={i18n.t('expand_here')} + > {post.embed_title} - </a> - </span> + </span> + ) : ( + <span> + <a class="text-body" target="_blank" href={post.url}> + {post.embed_title} + </a> + </span> + )} </h5> <span class="d-inline-block ml-2 mb-2 small text-muted"> <a |