Skip to content

fix: mobile contest cards too narrow in Explore carousel#14338

Merged
dylanjeffers merged 1 commit into
mainfrom
claude/tender-davinci-bc5873
May 15, 2026
Merged

fix: mobile contest cards too narrow in Explore carousel#14338
dylanjeffers merged 1 commit into
mainfrom
claude/tender-davinci-bc5873

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

@dylanjeffers dylanjeffers commented May 15, 2026

Summary

The contest cards in the Explore page "Contests" carousel were rendering far narrower than the cards on the dedicated /contests screen, squeezing the host row, the two-line title (clipped mid-word), and the entries pill. The slot wrapper in packages/mobile/src/components/core/CardList.tsx was hard-coded to width: spacing(43) (172px), which is right for thumbnail-style cards (tracks, playlists) but too narrow for the redesigned contest card. ContestCard.tsx had previously papered over this with minWidth: 250 — that let the card render at 250px, but the layout slot stayed at 172px, so adjacent cards visually overlapped.

  • CardList: added a horizontalCardWidth prop and removed the hard-coded width from the slot style. Defaults to the previous 172px, so existing horizontal carousels (tracks, playlists, etc.) are unchanged.
  • FeaturedRemixContests: passes useWindowDimensions().width - 48, matching the visual width of cards on the dedicated /contests screen and leaving a small peek of the next card to invite horizontal swipe.
  • ContestCard: dropped the now-redundant minWidth: 250 workaround.

Test plan

  • Mobile native Explore screen → "Contests" carousel: cards render at roughly full screen width (matching /contests) with a small peek of the next card; host row, title, and entries pill no longer squeezed; titles no longer cut off mid-word.
  • Horizontal swipe still works smoothly across the carousel.
  • Other horizontal carousels on Explore (ForYouTracks, FeaturedPlaylists, etc.) unchanged — they still use 172px slot widths.
  • Dedicated /contests screen, profile "Contests" tab, and track-screen "Contests" tile unchanged — those layouts already render cards at full container width and don't go through CardList.

🤖 Generated with Claude Code

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

⚠️ No Changeset found

Latest commit: b443277

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

CardList's horizontal slot was hard-coded to 172px wide, which is the
right size for thumbnail-style cards (tracks, playlists) but cropped the
redesigned contest card — host row, two-line title, and entries pill all
got squeezed, and titles clipped mid-word. ContestCard had previously
papered over this with `minWidth: 250`, which let the card render at 250px
but kept the slot at 172px, so adjacent cards visually overlapped.

- Added a `horizontalCardWidth` prop to CardList and removed the hard-coded
  width from the slot style, defaulting to the previous 172px so existing
  horizontal carousels (tracks, playlists, etc.) are unchanged.
- FeaturedRemixContests now passes `windowWidth - 48`, matching the visual
  width of the cards on the dedicated `/contests` screen and leaving a small
  peek of the next card to invite horizontal swipe.
- Dropped the now-redundant `minWidth: 250` workaround on ContestCard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dylanjeffers dylanjeffers force-pushed the claude/tender-davinci-bc5873 branch from 93c184f to b443277 Compare May 15, 2026 22:12
@dylanjeffers dylanjeffers changed the title fix: mobile contest card title clipped mid-word on Explore carousel fix: mobile contest cards too narrow in Explore carousel May 15, 2026
@dylanjeffers dylanjeffers merged commit 18a1aab into main May 15, 2026
3 checks passed
@dylanjeffers dylanjeffers deleted the claude/tender-davinci-bc5873 branch May 15, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant