-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fixed a Bug in Padding of CSS in HomePage #11048
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
Conversation
…ave the slick-slide class applied. This ensures that: Each carousel item has a margin: 0 5px which provides 10px total spacing between items The padding: 2px is maintained for consistent internal spacing These styles are specific to the combination of .slick-slide.carousel__item so they only apply when Slick carousel is active This should resolve the missing padding/spacing issue you're seeing in the carousel items. The spacing will be more consistent and visible between the book cards in the carousel.
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 fixes CSS padding/spacing issues for carousel items on the HomePage by adding specific margin and padding rules for slick carousel slides. The change addresses inconsistent spacing between carousel items by implementing a standardized spacing approach.
- Adds margin and padding rules for carousel items with slick-slide class
- Implements 10px total spacing between items (5px margin on each side)
- Maintains consistent 2px internal padding for carousel items
Comments suppressed due to low confidence (1)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11048 +/- ##
==========================================
- Coverage 17.14% 17.02% -0.12%
==========================================
Files 91 92 +1
Lines 4981 5021 +40
Branches 867 874 +7
==========================================
+ Hits 854 855 +1
- Misses 3588 3621 +33
- Partials 539 545 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Please include screenshots. |
|
@RayBB found this to be the one way in which "Join Waitlist" does not share with other options - |
|
If I remove the button from a form, I can confirm as @doct0r-furcation suggests that the carousel button renders correctly. If I remove both classes from the form Typically class That's where I'd start. openlibrary/static/css/components/book.less Lines 3 to 7 in 3f2fde9
It seems likely the problem is applies directly to direct descendants and So, what solution should we go with? We could try something like... |
|
@Aashish-Jha-11 thank you for your effort in trying to help :) @doct0r-furcation given you're assigned to this issue, would like to try to open the pull request and test the solution? |
|
@mekarpeles you got it! |
|
Closed in #11079 , thanks everyone! |

I've implemented adds specific spacing for carousel items when they have the slick-slide class applied. This ensures that-
Each carousel item has a margin 0 5px which provides 10px total spacing between items , The padding 2px is maintained for consistent internal spacing.
Closes #11036
Technical
Testing
Screenshot
Stakeholders