Merge pull request #1437 from cloventt/expand-video-embeds-to-fullwidth

Expand video embeds to fullwidth
This commit is contained in:
SleeplessOne1917 2023-06-22 00:58:27 +00:00 committed by GitHub
commit 468d78a06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,10 +75,14 @@ export class MetadataCard extends Component<
</div> </div>
)} )}
{this.state.expanded && post.embed_video_url && ( {this.state.expanded && post.embed_video_url && (
<div className="ratio ratio-16x9">
<iframe <iframe
allowFullScreen
className="post-metadata-iframe" className="post-metadata-iframe"
src={post.embed_video_url} src={post.embed_video_url}
title={post.embed_title}
></iframe> ></iframe>
</div>
)} )}
</> </>
); );