mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-12 19:37:29 +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:
parent
030d8121fe
commit
de4438124a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user