From b7c6f71a4c33fe2f1aff8620532278afaab7257f Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:58:41 -0600 Subject: [PATCH] fix loading skeleton --- .../discover/components/MediaCarousel.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/pages/discover/components/MediaCarousel.tsx b/src/pages/discover/components/MediaCarousel.tsx index cb9f3f21..7e265a7f 100644 --- a/src/pages/discover/components/MediaCarousel.tsx +++ b/src/pages/discover/components/MediaCarousel.tsx @@ -138,7 +138,7 @@ export function MediaCarousel({ // Set up intersection observer for lazy loading const { targetRef, isIntersecting } = useIntersectionObserver({ - rootMargin: "200px", + rootMargin: "300px", }); // Handle provider/genre selection @@ -300,16 +300,27 @@ export function MediaCarousel({ })(); // Loading state - if (!isIntersecting) { + if (!isIntersecting || !sectionTitle) { return (