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

set max-w-[1392px] for navbar on light only pages #2002

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copy link

changeset-bot bot commented Jan 21, 2025

🦋 Changeset detected

Latest commit: bbc679e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@theguild/components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dimaMachina dimaMachina requested a review from hasparus January 21, 2025 18:45
Copy link
Contributor

github-actions bot commented Jan 21, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@theguild/components 9.2.0-alpha-20250121185028-bbc679e613c82498fe385309c2bd6c2b2f149572 npm ↗︎ unpkg ↗︎

<body
className={cn(
className,
isLightOnlyPage && 'light text-green-1000 [&_#h-navmenu-container]:max-w-[1392px]',
Copy link
Collaborator

Choose a reason for hiding this comment

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

The width and light mode forcing shouldn't be connected IMHO.

We already have dark mode pages with narrower width, take a look at the comment in #1995 please.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

So I'd add <HiveLayoutConfig widths="landing-narrow" /> to that Modules page.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

but this is the actual case in hive?
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

It was, but I fixed it in the Components v9 / Nextra 4 branch. Hive main is "outdated" compared to Components.

Case Studies pages is narrow, but dark-friendly.

I realize it makes the code more complex, but I think we're getting asked about dark more by users every now and then, so decoupling this would help us have more dark mode pages.

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.

2 participants