mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 20:31:31 +00:00
Only show it if it has a title.
This commit is contained in:
parent
2e38f934fe
commit
97fccb5615
1 changed files with 48 additions and 46 deletions
2
ui/src/components/iframely-card.tsx
vendored
2
ui/src/components/iframely-card.tsx
vendored
|
@ -27,6 +27,7 @@ export class IFramelyCard extends Component<
|
||||||
let iframely = this.props.iframely;
|
let iframely = this.props.iframely;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{iframely.title && (
|
||||||
<div class="card my-2">
|
<div class="card my-2">
|
||||||
<div class="row no-gutters">
|
<div class="row no-gutters">
|
||||||
{iframely.thumbnail_url && (
|
{iframely.thumbnail_url && (
|
||||||
|
@ -81,6 +82,7 @@ export class IFramelyCard extends Component<
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
{this.state.expanded && (
|
{this.state.expanded && (
|
||||||
<div class="my-2 embed-responsive embed-responsive-16by9">
|
<div class="my-2 embed-responsive embed-responsive-16by9">
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue