Thumbnail previews on attachments that cannot generate a preview.

This commit is contained in:
Giga Chubinidze 2023-09-25 06:30:34 +04:00
parent 825f0e839f
commit 5bae359b91

View file

@ -16,7 +16,7 @@
{{ attachment.attributes.file_name }}
</span>
</a>
<div class="attachment-image-tooltip bg-white sn-shadow-menu-sm" >
<div v-if="attachment.attributes.medium_preview !== null" class="attachment-image-tooltip bg-white sn-shadow-menu-sm" >
<img :src="this.imageLoadError ? attachment.attributes.urls.blob : attachment.attributes.medium_preview" @error="handleImageError"/>
</div>
<span v-if="attachment.isNewUpload" class="attachment-label-new">