From 6e490c2dd93d767c49552750d9ae465616249561 Mon Sep 17 00:00:00 2001 From: Zed Date: Sat, 11 Jun 2022 23:27:11 +0200 Subject: [PATCH] Improve gif html --- src/views/tweet.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/tweet.nim b/src/views/tweet.nim index 61b3b86..bcc8f02 100644 --- a/src/views/tweet.nim +++ b/src/views/tweet.nim @@ -135,11 +135,9 @@ proc renderGif(gif: Gif; prefs: Prefs): VNode = let thumb = getSmallPic(gif.thumb) let url = getPicUrl(gif.url) if prefs.autoplayGifs: - video(class="gif", poster=thumb, controls="", autoplay="", muted="", loop=""): - source(src=url, `type`="video/mp4") + video(src=url, class="gif", poster=thumb, controls="", muted="", loop="", playsinline="", autoplay="") else: - video(class="gif", poster=thumb, controls="", muted="", loop=""): - source(src=url, `type`="video/mp4") + video(src=url, class="gif", poster=thumb, controls="", muted="", loop="", playsinline="") proc renderPoll(poll: Poll): VNode = buildHtml(tdiv(class="poll")):