mirror of
				https://git.sr.ht/~cadence/cloudtube
				synced 2025-10-27 19:59:08 +00:00 
			
		
		
		
	Revert "add thumbnail on videos"
This reverts commit c55429ac4937b912e42782ea6c95010a95f6d213. 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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Cadence Ember
						Cadence Ember