feat: disable video controls and loop playback
This commit is contained in:
parent
d4ab339173
commit
f218e205e7
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@
|
||||||
& * {
|
& * {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
& img {
|
& img, & video {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
@ -72,7 +72,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>
|
<video autoplay 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>
|
||||||
|
@ -93,7 +93,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>
|
<video autoplay 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>
|
||||||
|
|
Loading…
Reference in a new issue