♻️ Continued to migrate components

This commit is contained in:
2025-11-29 02:12:12 +08:00
parent 040e19025e
commit 54bf8cf915
10 changed files with 102 additions and 97 deletions

View File

@@ -15,13 +15,12 @@
/>
</div>
<!-- Main image -->
<img
<n-image
:src="remoteSource"
class="w-full h-auto rounded-md transition-opacity duration-500 object-cover cursor-pointer"
:class="{ 'opacity-0': !imageLoaded && blurhash }"
@load="imageLoaded = true"
@error="imageLoaded = true"
@click="openExternally"
/>
</template>
@@ -98,7 +97,9 @@ const remoteSource = computed(
const blurhashContainerStyle = computed(() => {
return {
"padding-bottom": `${aspectRatio.value == null ? 0 : aspectRatio.value * 100}%`
"padding-bottom": `${
aspectRatio.value == null ? 0 : aspectRatio.value * 100
}%`
}
})