mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-15 12:13:04 +00:00
Iframely card now opens embed on title if available.
This commit is contained in:
parent
5396cb2f5c
commit
54762b601d
18
ui/src/components/iframely-card.tsx
vendored
18
ui/src/components/iframely-card.tsx
vendored
@ -34,11 +34,21 @@ export class IFramelyCard extends Component<
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title d-inline">
|
<h5 class="card-title d-inline">
|
||||||
<span>
|
{post.embed_html ? (
|
||||||
<a class="text-body" target="_blank" href={post.url}>
|
<span
|
||||||
|
class="unselectable pointer"
|
||||||
|
onClick={linkEvent(this, this.handleIframeExpand)}
|
||||||
|
data-tippy-content={i18n.t('expand_here')}
|
||||||
|
>
|
||||||
{post.embed_title}
|
{post.embed_title}
|
||||||
</a>
|
</span>
|
||||||
</span>
|
) : (
|
||||||
|
<span>
|
||||||
|
<a class="text-body" target="_blank" href={post.url}>
|
||||||
|
{post.embed_title}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</h5>
|
</h5>
|
||||||
<span class="d-inline-block ml-2 mb-2 small text-muted">
|
<span class="d-inline-block ml-2 mb-2 small text-muted">
|
||||||
<a
|
<a
|
||||||
|
Loading…
Reference in New Issue
Block a user