Skip to content

fix(academy): inventory table on mobile - #369

Merged
pratyush618 merged 2 commits into
mainfrom
fix/academy-inventory-mobile
Sep 23, 2026
Merged

pratyush618 merged 2 commits into
mainfrom
fix/academy-inventory-mobile

Conversation

@stromanni

Copy link
Copy Markdown
Contributor

Summary

  • The inventory table's Contents cell used className="contents". Tailwind treats that as display: contents, so the cell's layout broke at every width: "50 Qs" and the free-questions line sat side by side and overlapped the row borders. The class is now chapter-contents.
  • On a phone, the table's min-width: 46rem forced it to scroll sideways, which squeezed chapter names to one word per line and clipped the contents column. Below 52rem each row now stacks as a card: chapter, then contents (which wraps), then the price and the Pick button side by side.

Test plan

  • Screenshots at 412, 820, 900 and 1280px: cards below 52rem, the table above it
  • No horizontal page overflow at any of those widths
  • Biome passes on the changed files

@vercel

vercel Bot commented Sep 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
byteveda-site Ready Ready Preview Sep 23, 2026 5:47am UTC
byteveda-site-academy Ready Ready Preview Sep 23, 2026 5:47am UTC
2 Skipped Deployments
Project Deployment Actions Updated
byteveda-site-admin Skipped Skipped Sep 23, 2026 5:47am UTC
byteveda-site-flexiq Skipped Skipped Sep 23, 2026 5:47am UTC

Tailwind's `contents` utility set display: contents on the cell, breaking its layout at every width.
@pratyush618
pratyush618 merged commit bf7827e into main Sep 23, 2026
16 checks passed
@pratyush618
pratyush618 deleted the fix/academy-inventory-mobile branch September 23, 2026 05:49

This branch was successfully deployed

2 active and 2 inactive deployments
Preview – byteveda-site dbcd7bd6 Deployed Sep 23, 2026 by vercel[bot]
Preview – byteveda-site-academy dbcd7bd6 Deployed Sep 23, 2026 by vercel[bot]
Preview – byteveda-site-admin dbcd7bd6 Deployed Sep 23, 2026 by vercel[bot]
Preview – byteveda-site-flexiq dbcd7bd6 Deployed Sep 23, 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.

2 participants