mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-27 19:09:12 +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
|
@ -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