From 810dff999ecd3e85e58b694b9dafbe95afc9135c Mon Sep 17 00:00:00 2001 From: Astound Date: Wed, 24 Jan 2024 11:50:13 +0800 Subject: Set flexible responsive video --- youtube/static/watch.css | 2 +- youtube/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube') diff --git a/youtube/static/watch.css b/youtube/static/watch.css index 51ecacd..849e22b 100644 --- a/youtube/static/watch.css +++ b/youtube/static/watch.css @@ -21,7 +21,7 @@ img { video { width: 100%; height: auto; - max-height: 480px; + max-height: calc(100vh/1.5); } /* plyr fix */ diff --git a/youtube/version.py b/youtube/version.py index f50b25a..46fde2d 100644 --- a/youtube/version.py +++ b/youtube/version.py @@ -1,3 +1,3 @@ from __future__ import unicode_literals -__version__ = '0.2.6' +__version__ = '0.2.7' -- cgit v1.2.3