mirror of
https://github.com/zedeus/nitter.git
synced 2025-07-23 18:48:29 +00:00
Improve gif html
This commit is contained in:
parent
00daab1f15
commit
6e490c2dd9
|
@ -135,11 +135,9 @@ proc renderGif(gif: Gif; prefs: Prefs): VNode =
|
||||||
let thumb = getSmallPic(gif.thumb)
|
let thumb = getSmallPic(gif.thumb)
|
||||||
let url = getPicUrl(gif.url)
|
let url = getPicUrl(gif.url)
|
||||||
if prefs.autoplayGifs:
|
if prefs.autoplayGifs:
|
||||||
video(class="gif", poster=thumb, controls="", autoplay="", muted="", loop=""):
|
video(src=url, class="gif", poster=thumb, controls="", muted="", loop="", playsinline="", autoplay="")
|
||||||
source(src=url, `type`="video/mp4")
|
|
||||||
else:
|
else:
|
||||||
video(class="gif", poster=thumb, controls="", muted="", loop=""):
|
video(src=url, class="gif", poster=thumb, controls="", muted="", loop="", playsinline="")
|
||||||
source(src=url, `type`="video/mp4")
|
|
||||||
|
|
||||||
proc renderPoll(poll: Poll): VNode =
|
proc renderPoll(poll: Poll): VNode =
|
||||||
buildHtml(tdiv(class="poll")):
|
buildHtml(tdiv(class="poll")):
|
||||||
|
|
Loading…
Reference in a new issue