-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix mobile responsiveness of Related Resources cards #7283
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: master
Are you sure you want to change the base?
Conversation
Signed-off-by: kishore08-07 <[email protected]>
Signed-off-by: kishore08-07 <[email protected]>
Signed-off-by: kishore08-07 <[email protected]>
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.
Pull request overview
This PR enhances mobile responsiveness for the Related Resources cards component by implementing a carousel with swipe navigation on smaller screens while maintaining the current multi-card layout on larger viewports.
Key Changes:
- Reorganized and consolidated media queries for better maintainability and clearer responsive breakpoints
- Enhanced touch navigation with swipe support and optimized arrow controls for mobile devices
- Removed duplicate CSS properties to improve code cleanliness
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/components/Related-Posts/relatedPosts.style.js |
Reorganized media queries into consolidated breakpoint blocks (721-992px, 1200px+, ≤720px, ≤384px), added mobile-specific carousel controls styling, removed duplicate color properties on arrow pseudo-elements, and added z-index to arrows |
src/components/Related-Posts/index.js |
Changed arrows to display on all screen sizes (previously desktop-only), added touch swipe configuration properties (swipe, swipeToSlide, touchThreshold) for improved mobile interaction |
Co-authored-by: Copilot <[email protected]> Signed-off-by: Kishore B <[email protected]>
Co-authored-by: Copilot <[email protected]> Signed-off-by: Kishore B <[email protected]>
|
🚀 Preview for commit 055cfa0 at: https://694b7076fa81b7b2399b642e--layer5.netlify.app |
Description
This PR fixes #6667
Notes for Reviewers
view the page in smaller viewports
Signed commits