Skip to content
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

Merged
merged 5 commits into from
May 3, 2024
Merged

fix: horizontal scrollbar appearing on small screen #6680

merged 5 commits into from
May 3, 2024

Conversation

theoludwig
Copy link
Contributor

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:

image

Validation

This PR fixes this issue by wrapping the texts:

image

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.

@theoludwig theoludwig requested a review from a team as a code owner April 30, 2024 17:58
Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview May 1, 2024 3:43pm

components/Containers/MetaBar/index.module.css Outdated Show resolved Hide resolved
layouts/layouts.module.css Outdated Show resolved Hide resolved
theoludwig and others added 2 commits April 30, 2024 22:54
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>
Copy link
Member

@canerakdas canerakdas left a 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>
Copy link

github-actions bot commented May 1, 2024

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 95 🟢 100 🟢 96 🟢 91 🔗
/en/about 🟢 98 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 98 🟢 98 🟢 100 🟢 92 🔗
/en/download 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 95 🟢 100 🟢 96 🟢 92 🔗

Copy link

github-actions bot commented May 1, 2024

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 91%
90.04% (588/653) 76.08% (175/230) 92.18% (118/128)

Unit Test Report

Tests Skipped Failures Errors Time
128 0 💤 0 ❌ 0 🔥 5.728s ⏱️

@canerakdas
Copy link
Member

The lint check gives an error; it's probably related to the order of the Tailwind classes. Can you re-run the format script 🙇

@theoludwig
Copy link
Contributor Author

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. 😄

Copy link
Contributor

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

LGTM !

Copy link
Member

@ovflowd ovflowd left a 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!

Merged via the queue into nodejs:main with commit bcaca06 May 3, 2024
15 checks passed
@theoludwig theoludwig deleted the fix/horizontal-scrollbar-word-break branch May 3, 2024 19:48
@MitchTalmadge MitchTalmadge mentioned this pull request May 5, 2024
@araujogui araujogui mentioned this pull request May 16, 2024
5 tasks
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.

5 participants