mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
Merge pull request #1437 from cloventt/expand-video-embeds-to-fullwidth
Expand video embeds to fullwidth
This commit is contained in:
commit
468d78a06f
1 changed files with 8 additions and 4 deletions
|
@ -75,10 +75,14 @@ export class MetadataCard extends Component<
|
|||
</div>
|
||||
)}
|
||||
{this.state.expanded && post.embed_video_url && (
|
||||
<iframe
|
||||
className="post-metadata-iframe"
|
||||
src={post.embed_video_url}
|
||||
></iframe>
|
||||
<div className="ratio ratio-16x9">
|
||||
<iframe
|
||||
allowFullScreen
|
||||
className="post-metadata-iframe"
|
||||
src={post.embed_video_url}
|
||||
title={post.embed_title}
|
||||
></iframe>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue