fix preview

This commit is contained in:
Julian Freeman
2026-01-18 23:45:11 -04:00
parent 0c5824d85c
commit 0c307c319a
4 changed files with 123 additions and 48 deletions

View File

@@ -28,8 +28,14 @@ const onSelect = (index: number) => {
@click="onSelect(index)"
>
<div class="h-full w-full bg-gray-800 flex items-center justify-center overflow-hidden rounded border border-gray-600">
<!-- Use actual thumbnail path later -->
<img :src="convertFileSrc(item.path)" class="w-full h-full object-cover" loading="lazy" />
<!-- Use generated thumbnail -->
<img
:src="convertFileSrc(item.thumbnail)"
class="w-full h-full object-cover"
loading="lazy"
decoding="async"
fetchpriority="low"
/>
</div>
</div>
</template>