forked from nutomic/lemmy
Iframely card now opens embed on title if available.
This commit is contained in:
parent
072952e1a6
commit
70ba959413
1 changed files with 14 additions and 4 deletions
10
ui/src/components/iframely-card.tsx
vendored
10
ui/src/components/iframely-card.tsx
vendored
|
@ -34,11 +34,21 @@ export class IFramelyCard extends Component<
|
|||
<div class="col-12">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title d-inline">
|
||||
{post.embed_html ? (
|
||||
<span
|
||||
class="unselectable pointer"
|
||||
onClick={linkEvent(this, this.handleIframeExpand)}
|
||||
data-tippy-content={i18n.t('expand_here')}
|
||||
>
|
||||
{post.embed_title}
|
||||
</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
|
||||
|
|
Loading…
Reference in a new issue