Skip to content

fix(learn): fix horizontal scroll issue on publishing-a-package #7557

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

Closed

Conversation

Shivpalsingh15
Copy link

This PR resolves the horizontal scroll issue on the publishing-a-package page.
I add tailwind breakpoints to fix this.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@Shivpalsingh15 Shivpalsingh15 requested a review from a team as a code owner March 20, 2025 13:08
Copy link

vercel bot commented Mar 20, 2025

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Mar 20, 2025 1:09pm

@avivkeller
Copy link
Member

Screenshot 2025-03-20 at 9 46 41 AM There's a large gap present between the sidebar and the content, and I don't think that's something that should exist on the website

Copy link
Member

@avivkeller avivkeller left a comment

Choose a reason for hiding this comment

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

See above concern

@avivkeller avivkeller changed the title fea: Fix horizontal scroll issue on publishing-a-package page (#7491) fix(learn): fix horizontal scroll issue on publishing-a-package Mar 20, 2025
@avivkeller avivkeller linked an issue Mar 20, 2025 that may be closed by this pull request
Copy link
Contributor

@ShubhamOulkar ShubhamOulkar left a comment

Choose a reason for hiding this comment

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

It appears that setting the last grid column to auto resolves the horizontal scroll issue for two breakpoints. However, further review is necessary for other breakpoints. May be adding a min-width to both sidebars could help.

image

@@ -16,7 +16,7 @@ const LearnLayout: FC<PropsWithChildren> = ({ children }) => (
<WithProgressionSidebar navKey="learn" />

<div>
<main>
<main className="md:w-[65vw] lg:w-[48vw]">
Copy link
Contributor

@ShubhamOulkar ShubhamOulkar Mar 29, 2025

Choose a reason for hiding this comment

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

Suggested change
<main className="md:w-[65vw] lg:w-[48vw]">
<main>

Remove this class and update css

@avivkeller
Copy link
Member

@Shivpalsingh15 are you still working on this, or should this be closed?

@avivkeller
Copy link
Member

Stale

@avivkeller avivkeller closed this Apr 15, 2025
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.

Horizontal scroll is created on the publishing-a-package page.
4 participants