Skip to content

Commit

Permalink
centering
Browse files Browse the repository at this point in the history
  • Loading branch information
owlester12 committed Sep 8, 2024
1 parent acffddb commit dec78d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/components/ClubPage/EventCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,23 @@ const EventCarousel = ({ data }: EventsProps) => {
<CarouselWrapper>
<Swiper
modules={[Navigation, Pagination]}
spaceBetween={60}
spaceBetween={50}
loop={true}
navigation={{ nextEl: '.arrow-left', prevEl: '.arrow-right' }}
draggable={true}
scrollbar={{ draggable: true }}
slidesPerView={'auto'}
centeredSlidesBounds={true}
centeredSlides={true}
>
{data.map((entry, index) => (
<SwiperSlide
key={index}
style={{ maxWidth: '250px', cursor: 'pointer' }}
style={{
maxWidth: '250px',
cursor: 'pointer',
boxSizing: 'border-box',
}}
onClick={() => showModal(entry)}
>
<EventCard event={entry} key={index} />
Expand Down

0 comments on commit dec78d3

Please sign in to comment.