Skip to content

Commit

Permalink
fix: ambassador carousel overflow cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew4Coding committed Aug 24, 2024
1 parent 653b5cd commit 1ca3984
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/AmbassadorModule/components/AmbassadorCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ const AmbassadorCarousel = () => {
Ambassador Open House Fasilkom UI.
</p>
</div>
<Carousel className="px-[65px] md:px-[120px] lg:px-[190px]">
<CarouselContent className="2xl:gap-5 lg:gap-[70px]">
<Carousel className="px-[65px] md:px-[120px] lg:px-[50px]">
<CarouselContent className="gap-1">
{Array.from(LAST_AMBASSADOR).map((item, index) => (
<CarouselItem key={index} className="lg:basis-1/2 xl:basis-1/3">
<Card
className="flex flex-col rounded-[28px] shadow-carousel lg:max-w-[370px] p-4 sm:p-4 pb-5 lg:min-h-[270px] gap-5"
className="flex flex-col rounded-[28px] shadow-carousel lg:max-w-[350px] p-4 sm:p-4 pb-5 lg:min-h-[270px] gap-5"
asset={
<Image
alt="contoh"
Expand All @@ -49,8 +49,8 @@ const AmbassadorCarousel = () => {
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious className="md:px-[50px] lg:px-[73px]" />
<CarouselNext className="md:px-[50px] lg:px-[73px]" />
<CarouselPrevious className='lg:-translate-x-20 hidden md:block'/>
<CarouselNext className='lg:translate-x-20 hidden md:block'/>
</Carousel>
</div>
)
Expand Down

0 comments on commit 1ca3984

Please sign in to comment.