Remove NuxtImg for non asset files

This commit is contained in:
Julien Nahum
2024-01-10 16:17:47 +01:00
parent 158dba64dc
commit 9750406025
17 changed files with 23 additions and 24 deletions

View File

@@ -4,7 +4,7 @@
:title="file.file.name"
>
<div v-if="file.src && !isImageHide" class="h-20 overflow-hidden flex">
<NuxtImg class="block object-cover object-center w-full" :src="file.src" @error="isImageHide=true"/>
<img class="block object-cover object-center w-full" :src="file.src" @error="isImageHide=true"/>
</div>
<div v-else class="h-20 flex items-center justify-center">
<svg class="w-10 h-10 text-gray-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"