1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-12-22 13:07:00 +00:00

Revert "add thumbnail on videos"

This reverts commit c55429ac49.

Reasoning: The video has no height while the poster image is loading,
and then once it loads a moment later, it takes up extra space,
enlarges the video, and the page jumps. I don't know how to make the
page not jump while loading the poster. Width, height, and styles
look like they're set correctly.
This commit is contained in:
Cadence Ember 2021-01-25 13:53:42 +13:00
parent 030d8121fe
commit de4438124a
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -21,7 +21,7 @@ block content
.video-container
- const format = sortedFormatStreams[0]
if format
video(controls preload="auto" poster=`/vi/${video.videoId}/maxresdefault.jpg` width=format.second__width height=format.second__height data-itag=format.itag)#video.video
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url+mediaFragment type=format.type)
else
video(src="")#video.video