Skip to content

A self-hosted media server and file management system

fix: lazy image error text too large

aminnausin40797d777da9
diff --git a/resources/js/components/lazy/LazyImage.vue b/resources/js/components/lazy/LazyImage.vue
index 0babb864..4f3d81d0 100644
--- a/resources/js/components/lazy/LazyImage.vue
+++ b/resources/js/components/lazy/LazyImage.vue
@@ -33,8 +33,8 @@ watch(
<div v-show="src && isLoading && !isError" class="absolute inset-0 flex items-center justify-center">
<SvgSpinners90RingWithBg class="size-4" />
</div>
- <div v-show="isError && !isLoading" class="absolute inset-0 flex items-center justify-center gap-1 pb-6">
- <ProIconsPhotoOff class="size-5" />Image failed to load ({{ alt }})
+ <div v-show="isError && !isLoading" class="absolute inset-0 flex flex-wrap items-center justify-center gap-1 p-2 pb-6 text-center text-xs">
+ <ProIconsPhotoOff class="size-5" /><span> Image failed to load ({{ alt }}) </span>
</div>
<img
v-bind="attrs"