From 20152a6316101c50459244930b8d9dad1ed822f5 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Thu, 24 Sep 2020 18:50:54 -0700 Subject: Specify video height in html so page doesn't shift down after load Use true video height extracted from youtube to handle videos shorter than their quality size. (e.g. widescreen videos) --- youtube/templates/watch.html | 3 +-- youtube/watch.py | 17 +++++++++-------- youtube/yt_data_extract/watch_extraction.py | 11 +++++++++-- 3 files changed, 19 insertions(+), 12 deletions(-) (limited to 'youtube') diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 7fa4b53..fc4aaf9 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -54,7 +54,6 @@ justify-self: center; max-width: 100%; width: {{ theater_video_target_width }}px; - max-height: {{ video_height }}px; margin-bottom: 10px; background-color: var(--video-background-color); } @@ -339,7 +338,7 @@ Reload without invidious (for usage of new identity button). {% else %} -