-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix: horizontal scrollbar appearing on small screen #6680
fix: horizontal scrollbar appearing on small screen #6680
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: Caner Akdas <canerakdas@gmail.com> Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>
Co-authored-by: Caner Akdas <canerakdas@gmail.com> Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>
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.
LGTM! Thank you for the contribution 🚀
Co-authored-by: Caner Akdas <canerakdas@gmail.com> Signed-off-by: Théo LUDWIG <contact@theoludwig.fr>
Lighthouse Results
|
The lint check gives an error; it's probably related to the order of the Tailwind classes. Can you re-run the format script 🙇 |
We will eventually get there. 😄 |
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.
LGTM !
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.
Awesome stuff, thank you so muhch @theoludwig for your continuous contributions. They are definitely appreciated and extremely welcome!
Description
On small screen (e.g: width 412px), on some security blog post page (e.g: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases), there is a horizontal scrollbar appearing because of the texts overflow in Table of Contents, and added padding in footer (we don't need this padding on small screens, as the "Trademark Policy", "Privacy Policy", etc. is centered).
We can clearly see the horizontal (overflow-x) scrollbar on this screen:
Validation
This PR fixes this issue by wrapping the texts:
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.