diff --git a/components/campaigns/AnnouncementHero.tsx b/components/campaigns/AnnouncementHero.tsx index bee864e495c6..e4669d7e3b5b 100644 --- a/components/campaigns/AnnouncementHero.tsx +++ b/components/campaigns/AnnouncementHero.tsx @@ -62,7 +62,11 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn )}
- {visibleBanners.map((banner, index) => ( + {visibleBanners.map((banner, index) => { + // Only render active banner and immediate neighbors + const isVisible = Math.abs(index - (activeIndex % numberOfVisibleBanners)) <= 1; + if (!isVisible) return null; + return( - ))} + ); + })}
{visibleBanners.map((banner, index) => (