Skip to content

Conversation

@kishore08-07
Copy link
Contributor

@kishore08-07 kishore08-07 commented Dec 24, 2025

Description

This PR fixes #6667

  • Improves the user experience on mobile by making Related Resources cards responsive.
  • Cards now display one at a time with swipe navigation on smaller screens, while preserving the current design on larger viewports.

Notes for Reviewers
view the page in smaller viewports

image

Signed commits

  • Yes, I signed my commits.

Copilot AI review requested due to automatic review settings December 24, 2025 04:25
Copy link
Contributor

Copilot AI left a 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

kishore08-07 and others added 2 commits December 24, 2025 10:03
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]>
@l5io
Copy link
Contributor

l5io commented Dec 24, 2025

🚀 Preview for commit 055cfa0 at: https://694b7076fa81b7b2399b642e--layer5.netlify.app

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.

Related Resources Card not responsive for smaller screens .

3 participants