Merge pull request #6281 from G-Chubinidze/gc_SCI_9326

Thumbnail previews on attachments that cannot generate a preview. [SCI-9326]
This commit is contained in:
Martin Artnik 2023-09-25 09:05:38 +02:00 committed by GitHub
commit 3f23d10462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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">