Skip to content

fix: resolve horizontal overflow on table of components page on mobile & web view #2630 #2631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mohit5Upadhyay
Copy link

@Mohit5Upadhyay Mohit5Upadhyay commented Aug 7, 2025

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything or linked relevant results below
  • I made sure the docs are up to date
  • I included tests (or that’s not needed)

Description of changes

This PR fixes Issue: #2630 , a mobile responsiveness issue on the /table-of-components page of the MDX site. Previously, on small screens, the table caused horizontal page overflow, resulting in a poor user experience and causing Horizontal scrolling.

Update

overflow-component-table.mp4

Closes #2630

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Aug 7, 2025
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (def2cba) to head (56bb886).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2631   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines         2650      2650           
  Branches         2         2           
=========================================
  Hits          2650      2650           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wooorm
Copy link
Member

wooorm commented Aug 7, 2025

I am not entirely sure this is a problem that needs fixing? 🤔

@Mohit5Upadhyay
Copy link
Author

Thanks @wooorm! 🙏

I am not entirely sure this is a problem that needs fixing? 🤔

The issue primarily affects mobile users. On smaller screens, the table on the /table-of-components page overflows the viewport, resulting in full-page horizontal scrolling. This can negatively impact readability and overall user experience, especially on touch devices.

By wrapping the table in a scrollable container, the fix ensures:

  • Horizontal scroll is limited to the table itself, not the whole page.
  • The layout remains visually consistent across screen sizes.

Let me know your thoughts —

@remcohaszing
Copy link
Member

I like the change visually, but I think there should be a fix which doesn’t involve a media query. Just scroll the table whenever it overflows. Or use a grid instead of a table. Then the rows can be aligned vertically on a narrow viewport.

@wooorm
Copy link
Member

wooorm commented Aug 7, 2025

This can negatively impact readability and overall user experience, especially on touch devices.

Why? Things are readable and scrollable in both cases. There’s more scrolling if you try and fit it inside the parent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤞 phase/open Post is being triaged manually
Development

Successfully merging this pull request may close these issues.

Horizontal overflow on “Table of Components” page in mobile view
3 participants