aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-09-24 18:50:54 -0700
committerJames Taylor <user234683@users.noreply.github.com>2020-09-24 18:50:54 -0700
commit20152a6316101c50459244930b8d9dad1ed822f5 (patch)
treef2dead9aea6fddd2f0f77a8593d850305a2012c4 /youtube/templates
parent9f0d84ddb9e5ae67d1626bea94501ff0308efae5 (diff)
downloadyt-local-20152a6316101c50459244930b8d9dad1ed822f5.tar.lz
yt-local-20152a6316101c50459244930b8d9dad1ed822f5.tar.xz
yt-local-20152a6316101c50459244930b8d9dad1ed822f5.zip
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)
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/watch.html3
1 files changed, 1 insertions, 2 deletions
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).</a>
</ol>
</div>
{% else %}
- <video controls autofocus class="video">
+ <video controls autofocus class="video" height="{{ video_height }}px">
{% for video_source in video_sources %}
<source src="{{ video_source['src'] }}" type="{{ video_source['type'] }}">
{% endfor %}