Added aspect ratio to the video (#2268)

This commit is contained in:
İsmail Karslı 2023-12-05 19:39:44 +03:00 committed by GitHub
parent 7702c041e5
commit 5784f9e0b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,7 +271,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
// if direct video link
if (url && isVideo(url)) {
return (
<div className="embed-responsive mt-3">
<div className="embed-responsive ratio ratio-16x9 mt-3">
<video muted controls className="embed-responsive-item col-12">
<source src={url} type="video/mp4" />
</video>