mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-24 18:15:17 +00:00
Stopping autoplay, widening videos to show controls.
- Fixes #250 - Fixes #288 - Fixes #291
This commit is contained in:
parent
f356a35884
commit
c38f8c9c00
2
ui/src/components/post-listing.tsx
vendored
2
ui/src/components/post-listing.tsx
vendored
|
@ -89,7 +89,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
<span title={i18n.t('expand_here')} class="pointer" onClick={linkEvent(this, this.handleImageExpandClick)}><img class="mx-2 mt-1 float-left img-fluid thumbnail rounded" src={post.url} /></span>
|
||||
}
|
||||
{post.url && isVideo(post.url) &&
|
||||
<video controls autoPlay muted loop class="mx-2 mt-1 float-left img-fluid thumbnail rounded">
|
||||
<video playsinline muted loop controls class="mx-2 mt-1 float-left" height="100" width="150">
|
||||
<source src={post.url} type="video/mp4" />
|
||||
</video>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue