Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand video embeds to fullwidth #1437

Merged
12 changes: 8 additions & 4 deletions src/shared/components/post/metadata-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)}
</>
);
Expand Down