diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-20 20:13:37 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-20 20:13:37 +0200 |
commit | 398ae343e6a33fb81f82380b17081b8f9bae328a (patch) | |
tree | 3d13af74b4d1542ec2ba06c2fcf9b73687a71274 /templates | |
parent | b6629e85bc4d77f43d2ddfe70505a25714018e65 (diff) | |
download | lens-398ae343e6a33fb81f82380b17081b8f9bae328a.tar.gz lens-398ae343e6a33fb81f82380b17081b8f9bae328a.tar.bz2 lens-398ae343e6a33fb81f82380b17081b8f9bae328a.zip |
feat: Fix video loading its full width
Diffstat (limited to 'templates')
-rw-r--r-- | templates/media.qtpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/media.qtpl b/templates/media.qtpl index 65b39c4..18eac0d 100644 --- a/templates/media.qtpl +++ b/templates/media.qtpl @@ -14,7 +14,7 @@ type MediaPage struct { {% for _, media := range p.Medias %} <div class="card-image"> {% if media.IsVideo() %} - <video controls muted="true" poster="/media/thumbnail?path_hash={%s media.PathHash %}" preload="none"> + <video class="image is-fit" controls muted="true" poster="/media/thumbnail?path_hash={%s media.PathHash %}" preload="metadata"> <source src="/media/image?path_hash={%s media.PathHash %}" type="{%s media.MIMEType %}"> </video> {% else %} |