fix for page-edit template, oops

This commit is contained in:
Ro 2022-02-23 16:16:12 -08:00
parent f24a6b5099
commit 2ed2cd3803

View file

@ -62,7 +62,11 @@
{% endif %}
{% endfor %}
{% else %}
<div id="0" class="img-item" style="background: url({{ media[0] }}) no-repeat center center / cover">
{% if item.type == "mp4"%}
<div id="0" class="video-item" data-source="{{ media[0].file }}"></div>
{% else %}
<div id="0" class="img-item" style="background: url({{ media[0].file }}) no-repeat center center / cover"></div>
{% endif %}
{% endif %}
</div>