feat: disable video controls for gif

This commit is contained in:
Ayo Ayco 2024-04-24 16:40:09 +02:00
parent 8bc39e648d
commit 95f657094b

View file

@ -22,8 +22,10 @@
color: white; color: white;
} }
} }
p, img, video { main {
margin-top: 1em; & p, & img, & video {
margin-top: 5px;
}
} }
summary:hover { summary:hover {
text-decoration: underline; text-decoration: underline;
@ -85,6 +87,7 @@
border: 1px solid rgba(34, 34, 34, 0.35); border: 1px solid rgba(34, 34, 34, 0.35);
border-radius: 5px; border-radius: 5px;
display: inline; display: inline;
margin-top: 1em;
width: 50px; width: 50px;
} }
@ -117,7 +120,7 @@
{% if media.type == 'image'%} {% if media.type == 'image'%}
<img src="{{media.url}}" /> <img src="{{media.url}}" />
{% elif media.type == 'gifv' %} {% elif media.type == 'gifv' %}
<video controls autoplay="autoplay" muted loop> <video autoplay="autoplay" muted loop>
<source src="{{media.url}}" type="video/mp4"> <source src="{{media.url}}" type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
@ -144,7 +147,7 @@
{% if media.type == 'image'%} {% if media.type == 'image'%}
<img src="{{media.url}}" /> <img src="{{media.url}}" />
{% elif media.type == 'gifv' %} {% elif media.type == 'gifv' %}
<video controls autoplay="autoplay" muted loop> <video autoplay="autoplay" muted loop>
<source src="{{media.url}}" type="video/mp4"> <source src="{{media.url}}" type="video/mp4">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>