💄 Improvements and adjustments in new UI

This commit is contained in:
2025-11-29 22:55:34 +08:00
parent 954eff069b
commit f5a2be3598
8 changed files with 52 additions and 54 deletions

View File

@@ -1,6 +1,9 @@
<template>
<div class="relative rounded-md overflow-hidden" :style="containerStyle">
<template v-if="itemType == 'image'">
<div
v-if="itemType == 'image'"
class="flex flex-col items-center justify-center"
>
<!-- Blurhash placeholder -->
<div
v-if="blurhash"
@@ -22,7 +25,7 @@
@load="imageLoaded = true"
@error="imageLoaded = true"
/>
</template>
</div>
<audio
v-else-if="itemType == 'audio'"
@@ -105,8 +108,8 @@ const blurhashContainerStyle = computed(() => {
const containerStyle = computed(() => {
return {
"max-height": props.maxHeight ?? "720px",
"aspect-ratio": aspectRatio.value
maxHeight: props.maxHeight ?? "720px",
aspectRatio: aspectRatio.value?.toString()
}
})