From f98d7758b1f9a23012a52786e59835d8de79c373 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 24 Jun 2025 21:16:01 -0500 Subject: [PATCH] Refine fallback timing behavior --- src/components/image/ImageWithFallback.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/image/ImageWithFallback.tsx b/src/components/image/ImageWithFallback.tsx index 407b18cf..51f47e85 100644 --- a/src/components/image/ImageWithFallback.tsx +++ b/src/components/image/ImageWithFallback.tsx @@ -84,7 +84,8 @@ export default function ImageWithFallback({ wasCached: wasCachedRef.current, hideFallback, showFallback, - forceTransition: forceFallbackFade, + forceFallbackFade, + classes: refFallback.current?.classList, }); } @@ -130,10 +131,10 @@ export default function ImageWithFallback({ if (shouldDebugFallbackTiming) { console.log('Hide fallback: 02', debugFallbackStyles()); } - }, 1000); + }, 1500); } } - }, 1000); + }, 1500); return () => { clearTimeout(outerTimeout.current); clearTimeout(innerTimeout.current);