Skip to content

Commit

Permalink
Merge pull request #264 from 29deepanshutyagi/issue_260
Browse files Browse the repository at this point in the history
Fixed #260 -- Upcoming events not visible in mobile view
  • Loading branch information
DevilsAutumn authored Dec 27, 2024
2 parents e465491 + f744bba commit d5fc3fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/sections/EventSection/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Main: React.FC = async () => {
{error && error.message && <ClientError error={error} />}
{filtered_events?.length ? (
<Carousel>
<CarouselContent>
<CarouselContent className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4'>
{filtered_events?.map(
({
cover_image,
Expand All @@ -50,10 +50,10 @@ const Main: React.FC = async () => {
slug,
}) => (
<CarouselItem
className='basis-1 sm:basis-1/2 md:basis-1/3'
className='w-full h-auto' // ensures full width on mobile
key={id}
>
<div className='mb-4 h-auto w-full md:mb-0 md:w-auto'>
<div className='mb-4 h-auto'>
<EventCard
eventId={id}
slug={slug}
Expand Down

0 comments on commit d5fc3fc

Please sign in to comment.