Skip to content

fix: make pokemon card images responsive on small screens - #24

Merged
hunterbecton merged 1 commit into
mainfrom
fix/responsive-pokemon-cards
May 1, 2026
Merged

hunterbecton merged 1 commit into
mainfrom
fix/responsive-pokemon-cards

Conversation

@hunterbecton

@hunterbecton hunterbecton commented May 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Replaced fixed width/height HTML attributes on all pokemon images with CSS aspect-ratio and max-width so they shrink gracefully on narrow viewports instead of overflowing
  • Switched the pokemon grid to a single centered column (max 216px) below 512px
  • Applied the same fix to the docs demo pokemon card

Test plan

  • Resize browser to 350px width — pokemon cards should not overflow
  • At 512px and below, grid shows single centered column capped at 216px
  • Skeleton loading states still render correctly with aspect-ratio sizing
  • Pokemon detail page hero and detail images scale properly on mobile
  • Docs demo card renders without overflow on small screens

Replace fixed width/height HTML attributes with CSS aspect-ratio and
max-width so images shrink gracefully on narrow viewports. Switch the
pokemon grid to a single centered column (max 216px) below 512px.
@vercel

vercel Bot commented May 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bones-demo Ready Ready Preview, Comment May 1, 2026 1:23pm
bones-docs Ready Ready Preview, Comment May 1, 2026 1:23pm

Request Review

@hunterbecton
hunterbecton merged commit 417e4dd into main May 1, 2026
11 checks passed

This branch was successfully deployed

2 active deployments
Preview – bones-demo — f1c09d0f Deployed May 1, 2026 by vercel[bot]
Preview – bones-docs — f1c09d0f Deployed May 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant