docs: fix prevent horizontal scroll in Note and Warning components on mobile#1255
docs: fix prevent horizontal scroll in Note and Warning components on mobile#1255markflorkowski merged 1 commit intopingdotgg:mainfrom
Conversation
… mobile Add min-w-0 and flex-1 to the content div in Note and Warning components to allow proper flex shrinking on mobile devices. This prevents horizontal overflow when content is wider than the viewport.
|
|
@2u841r is attempting to deploy a commit to the Ping Labs Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThis PR fixes horizontal scrolling on mobile devices by updating the flex layout in the Note and Warning MDX components. The inner wrapper's className changes from child-targeting margin utilities to a tighter flex configuration with explicit sizing constraints, enabling proper content shrinking on smaller screens. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2024-12-07T18:44:24.444ZApplied to files:
📚 Learning: 2024-09-26T21:08:04.720ZApplied to files:
⏰ 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). (8)
🔇 Additional comments (2)
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 |
Add min-w-0 and flex-1 to the content div in Note and Warning components to allow proper flex shrinking on mobile devices.
This prevents horizontal overflow when content is wider than the viewport.
closes #1254
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.