diff --git a/apps/renderer/src/components/ui/media/preview-media.tsx b/apps/renderer/src/components/ui/media/preview-media.tsx index e99d63d5d..fae18f35a 100644 --- a/apps/renderer/src/components/ui/media/preview-media.tsx +++ b/apps/renderer/src/components/ui/media/preview-media.tsx @@ -295,9 +295,14 @@ const FallbackableImage: FC< const width = Number.parseInt(props.width as string) return (
- {isLoading && !isAllError && ( + {!isAllError && ( // FIXME: optimize this if image load, the placeholder background will flash -
+
{blurhash ? (
@@ -317,7 +322,8 @@ const FallbackableImage: FC< width={props.width} {...props} className={cn( - blurhash && !isLoading ? "duration-500 ease-in-out animate-in fade-in-0" : "", + "transition-opacity duration-700", + isLoading ? "opacity-0" : "opacity-100", props.className, )} style={