Set max slides to the number of slides

This commit is contained in:
Lncvrt committed 2026-07-29 07:29:18 -07:00
1 parent 577f12f669
commit 3d06cc4e60
1 file changed
+4 -1
+4 -1
View File
@@ -82,7 +82,10 @@ export default function HomePage () {
<Swiper <Swiper
modules={[Navigation]} modules={[Navigation]}
spaceBetween={16} spaceBetween={16}
slidesPerView={recentSlidesPerView} slidesPerView={Math.min(
recentSlidesPerView,
Object.entries(filteredLaunchesList).length
)}
autoHeight={false} autoHeight={false}
className='w-full' className='w-full'
onSwiper={swiper => { onSwiper={swiper => {