Skip to content

Fix sublinks display on mobile #2620

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

Conversation

gregberge
Copy link
Contributor

@gregberge gregberge commented Dec 11, 2024

CleanShot 2024-12-11 at 14 20 31@2x
CleanShot 2024-12-11 at 14 20 43@2x

Copy link

linear bot commented Dec 11, 2024

Copy link

changeset-bot bot commented Dec 11, 2024

⚠️ No Changeset found

Latest commit: d8d7855

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@gregberge gregberge requested a review from SamyPesse December 11, 2024 13:20
Copy link
Contributor

github-actions bot commented Dec 11, 2024

GitBook Preview
Latest commit: https://8b455727.gitbook-open.pages.dev
PR: https://pr2620.gitbook-open.pages.dev

@gregberge gregberge requested a review from zenoachtig December 11, 2024 13:21
@gregberge gregberge force-pushed the greg/rnd-5468-the-sublink-of-header-will-disappear-when-the-width-of-the branch from ebd6bad to d9383ac Compare December 11, 2024 13:21
Copy link

argos-ci bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 13 changed Dec 31, 2024, 11:12 PM

Copy link
Member

@clairechabas clairechabas left a comment

Choose a reason for hiding this comment

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

much better 👍

active?: boolean;
className?: ClassValue;
Copy link
Member

Choose a reason for hiding this comment

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

I'm not familiar with the GBO dev env yet : why isn't that a string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We manipulate clsx values, but IMO we should not. All components should only accept a className?: string and if you need to merge thing you can do it when you pass the prop: <Any className={clsx(...)} /> like we do in the app.

<Link
href={href}
prefetch={false}
className={tcls(
Copy link
Member

Choose a reason for hiding this comment

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

Curious to know why we went for tcls instead of clsx on GBO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a mistake, but it's like that from the beginning. At some point we should change it to improve perfs.

@gregberge gregberge merged commit 29a0d7e into main Dec 11, 2024
8 of 9 checks passed
@gregberge gregberge deleted the greg/rnd-5468-the-sublink-of-header-will-disappear-when-the-width-of-the branch December 11, 2024 17:57
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.

3 participants