Skip to content

Conversation

@malav2110
Copy link
Contributor

Description

The PR fixes the horizontal scroll bar appearing for code section on smaller devices. #8437

Validation

Screenshot 2025-12-23 at 3 57 37 PM

Related Issues

Issue - #8437

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@malav2110 malav2110 requested a review from a team as a code owner December 23, 2025 22:59
Copilot AI review requested due to automatic review settings December 23, 2025 22:59
@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nodejs-org Ready Ready Preview Dec 24, 2025 0:44am

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

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 attempts to fix a horizontal scrollbar issue that appears on code sections when viewed on smaller devices. The fix adds several CSS constraints to prevent overflow at multiple levels of the component hierarchy.

Key changes:

  • Added max-w-full and overflow-hidden to the root container
  • Added min-w-0 to the content wrapper
  • Added max-w-full to the code element

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@malav2110
Copy link
Contributor Author

Code segment with error message:

Screenshot 2025-12-23 at 4 07 50 PM

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@avivkeller avivkeller enabled auto-merge December 25, 2025 14:55
@codecov
Copy link

codecov bot commented Dec 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.83%. Comparing base (26885a8) to head (b9a3e59).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8445      +/-   ##
==========================================
+ Coverage   73.65%   73.83%   +0.17%     
==========================================
  Files         108      109       +1     
  Lines        9193     9255      +62     
  Branches      312      313       +1     
==========================================
+ Hits         6771     6833      +62     
  Misses       2420     2420              
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avivkeller avivkeller added this pull request to the merge queue Dec 25, 2025
Merged via the queue into nodejs:main with commit 7bed3f4 Dec 25, 2025
12 checks passed
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.

Code blocks cause horizontal page scroll on small screens

3 participants