Skip to content

Conversation

@Katotodan
Copy link
Contributor

Description
This PR fixes a rendering issue in the SoSpecial carousel where slider items were shrinking on small devices.
The root cause was related to Gatsby’s SSR behavior: the slider was initially rendered on the server without access to viewport-dependent values used in the slider settings (inside settings > responsive array), causing react-slick to compute incorrect dimensions.
To fix this, SSR rendering was kind of disabled for this specific component, and the slider settings are now adjusted programmatically on the client based on the current screen size. This ensures consistent and stable rendering across all breakpoints.

This PR fixes #7305

Here is the picture before
PHOTO-2025-12-29-01-42-42

After
Screenshot 2025-12-29 at 21 09 08

Notes for Reviewers

Signed commits

  • [x ] Yes, I signed my commits.

Signed-off-by: DANIEL KATOTO <katotodan@gmail.com>
@l5io
Copy link
Contributor

l5io commented Dec 29, 2025

🚀 Preview for commit f83e56c at: https://6952c83dfa81b7936b9b64b4--layer5.netlify.app

Copy link
Contributor

@kishore08-07 kishore08-07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Katotodan

Text is overlapping, Adjust the card width and layout for smaller screens to ensure proper content spacing.

1000241179

Copy link
Contributor

@kishore08-07 kishore08-07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Katotodan
Use the Related Resources section on https://layer5.io/solutions/platform-engineering as the reference for the expected behavior.
1000241180

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.

Fixing slider on small devices

3 participants