This commit is contained in:
Ernest Wiśniewski 2023-06-12 09:48:49 +02:00
parent bccbcb6939
commit 1a552c3541

View file

@ -119,11 +119,12 @@
</li>
{% endif %}
{% if entry.hasEmbed %}
{% set image = entry.image ? uploaded_asset(entry.image.filePath) : '' %}
<li>
<button class="show-preview"
data-action="preview#show"
aria-label="{{ 'preview'|trans }}"
data-preview-url-param="{{ entry.url and entry.image ?? uploaded_asset(entry.image.filePath) }}"
data-preview-url-param="{{ entry.url ?? image }}"
data-preview-ratio-param="{{ entry.domain and entry.domain.shouldRatio ? true : false }}">
<i class="fa-solid fa-photo-film"></i>
</button>