-
Notifications
You must be signed in to change notification settings - Fork 850
fix: make tab items scrollable on mobile to avoid overflow #7123
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
base: main
Are you sure you want to change the base?
fix: make tab items scrollable on mobile to avoid overflow #7123
Conversation
On tablet and smaller screen sizes, the tabs are going off the screen. Link: https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/no-rust-engine
WalkthroughAdds a responsive CSS rule to enable horizontal scrolling on the tab list within a max-width: 1191px media query by setting overflow-x: scroll on .tabs-container ul.tabs. No other files or styles are changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/css/custom.css (1)
681-683
: Preferoverflow-x: auto
+ mobile momentum; hide vertical overflow.This avoids always-visible scrollbars and improves iOS/Android touch scroll.
- .tabs-container ul.tabs{ - overflow-x: scroll; - } + .tabs-container ul.tabs { + overflow-x: auto; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; + scrollbar-gutter: stable both-edges; + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/css/custom.css
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: runner / linkspector
- GitHub Check: Check internal links
🔇 Additional comments (1)
src/css/custom.css (1)
681-683
: Confirm selector matches rendered markup; broaden to Docusaurus defaults.Automated search returned "No files were searched" — verification couldn't complete. Confirm src/css/custom.css (lines 681–683) targets the actual tab markup (ul.tabs / .tabs__list / [role="tablist"]); if not, apply the diff below.
- .tabs-container ul.tabs { + .tabs-container ul.tabs, + .tabs-container .tabs__list, + .tabs-container [role="tablist"] { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable both-edges; + display: flex; + flex-wrap: nowrap; } + .tabs-container .tabs__list > * { + flex: 0 0 auto; }Verify with:
git grep -nE 'tabs__list|ul\.tabs|role="tablist"' || rg -n -uu -S 'tabs__list|ul\.tabs|role="tablist"'
On tablet and smaller screen sizes, the tabs are going off the screen.
Link
https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/no-rust-engine
Problem

Solution
Targeted both tabs with a css class in a pre-existing media query, and added an overflow-x attribute with value of scroll
Summary by CodeRabbit
New Features
Style