]> Untitled Git - lemmy.git/commitdiff
Stopping autoplay, widening videos to show controls.
authorDessalines <tyhou13@gmx.com>
Sat, 12 Oct 2019 22:15:18 +0000 (15:15 -0700)
committerDessalines <tyhou13@gmx.com>
Sat, 12 Oct 2019 22:15:18 +0000 (15:15 -0700)
- Fixes #250
- Fixes #288
- Fixes #291

ui/src/components/post-listing.tsx

index 9409a372ed679367094aeb00a6c1e8aaea1ca15a..2b7afc6b0e259f7a5d3d3c5266d9ff5609fe9e04 100644 (file)
@@ -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>
         }