- commit
- ffe8c3d785d91bfb8896eca76626e6f149cd3b0e
- parent
- 4b2fa8b7119dedc1235e809fe4e0c9043a2fccd0
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-02-07 12:46
set width and height on video element
Diffstat
M | static/style.css | 1 | + |
M | templates/video.html | 2 | +- |
2 files changed, 2 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css
@@ -103,6 +103,7 @@ header { 103 103 104 104 video { 105 105 inline-size: 100%; -1 106 block-size: auto; 106 107 max-block-size: 100vb; 107 108 object-fit: contain; 108 109 background-color: var(--bg-intense);
diff --git a/templates/video.html b/templates/video.html
@@ -4,7 +4,7 @@ 4 4 5 5 {% block content %} 6 6 <div class="relative">7 -1 <video controls poster="{{ thumbnail.large }}" preload="none" crossorigin="anonymous">-1 7 <video controls poster="{{ thumbnail.large }}" preload="none" crossorigin="anonymous" width="960" height="720"> 8 8 {% for file in _embedded.files %} 9 9 <source type="{{ file.mime_type }}" src="/video/{{ id }}-{{ file.quality }}.{{ file.format }}" {% if file.quality != 'adaptive' %}media="(min-height: {{ file.quality }}x)" data-quality="{{ file.quality }}" data-co2="{{ file.size.formatted }} (~{{ file.size.bytes|co2 }})"{% endif %}> 10 10 {% endfor %}