mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
Stopping autoplay, widening videos to show controls.
- Fixes #250 - Fixes #288 - Fixes #291
This commit is contained in:
parent
84341e068e
commit
c65197fa9f
1 changed files with 1 additions and 1 deletions
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