Skip to content

[BUG] City cards are cut off at corners on mobile view #920

@Ishita-190

Description

@Ishita-190

Describe the bug.

The venue/city cards in the ReactSlider component are not properly responsive on mobile devices. The cards have fixed dimensions that are too wide for phone screens, causing them to extend beyond the viewport and appear cut off at the corners.

Current Behavior:

  • Cards use w-[300px] h-[400px] sm:w-[250px] sm:h-[350px]
  • On phones, the 250px width is still too large for the viewport
  • Cards extend beyond screen boundaries, getting cut at corners
  • Slider treats most phones as desktop due to a very small mobile breakpoint

Expected behavior

  • Cards should fit completely within mobile viewport
  • Responsive sizing should adapt to different screen sizes
  • No content should be cut off or overflow
  • Slider should apply mobile layout on phone-sized screens

Files to Modify:

components/Venue/venue.tsx - Line 23 (className with card dimensions)

  • Change w-[300px] h-[400px] sm:w-[250px] sm:h-[350px]
  • To something like className="relative w-full max-w-[300px] h-[380px] sm:h-[400px] md:h-[420px] card-bg...
  • Consider reducing margins/padding on mobile (m-3 to m-2, p-4 to p-3)

components/Slider/slider.tsx)

  • Currently const isMobile = useMediaQuery({ maxWidth: '260px' });
  • maybe change it to '640px' to expand the mobile breakpoint

Screenshots

Image

How to Reproduce

  1. Open the website locally
  2. Access mobile view:
  • Open browser DevTools (F12 or right-click → Inspect)
  • Toggle device emulation mode (mobile icon in DevTools)
  • OR: Resize browser window to mobile width (< 400px)

3.Test different mobile sizes:

  • iPhone SE (375px width) - cards should be cut off
  • Samsung Galaxy S8 - issue more severe

🖥️ Device Information [optional]

No response

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions