You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These changes resolve several issues related to the current layout and element placement. They guarantee that the entire header experiences minimal element movement and overlaps.
The header, with its variable package name and numerous elements (version, provenance, badges, code, docs, etc.), can be very hard to maintain.
This becomes especially tricky as the screen size shrinks, causing misaligned elements.
The idea is to limit the number of variables at play:
the package name sits alone, with only the repository star count, which is a very important metric for how users judge whether to use a library or another
versions and badges sit right under the package name
the description stays the same
Various links and tabs are next to each other, which also makes more sense since the mobile view has them all together.
Notes
The org/name has been renamed simply using the provider name to avoid long names that eat space and repetition with the header title
The forks link has been removed. I can put it back, if everyone thinks it's very useful, but tbh, I feel it's the least important info I can get from the view, and it just takes space and visual attention.
Let me know what you think and if it needs adjustments
I've attached two videos: one with a small name and one with a longer name, to demonstrate that it works well in both cases.
MatteoGabriele
changed the title
refactor(ui): better distributions of elements in package header
refactor(ui): distributions of elements in package header
Feb 3, 2026
The PR restructures the package page header into a flex-based layout with a persistent left column. Organisation link rendering is moved inside the header and made conditional; the copy button is repositioned. Version rendering now shows requested vs resolved versions with provenance/not-latest indicators. External links are grouped; mobile nav items moved to a compact list; internal navigation retained for larger screens. Public API: useRepoMeta(repositoryUrl) now destructures { repoRef, stars, starsLink } (forks and forksLink removed). Changes: +267 / -270.
The pull request description clearly relates to the changeset, detailing layout reorganisation of the package header with specific changes to element placement and removal of forks link.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches🧪 Generate unit tests (beta)
Create PR with unit tests
Post copyable unit tests in a comment
Comment @coderabbitai help to get the list of available commands and usage tips.
Looks great !
We discussed in chat about the removal of the fork-count, which does not reach consensus.
I personally think this metric has some merit, but would not mind not having if it improves the layout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes resolve several issues related to the current layout and element placement. They guarantee that the entire header experiences minimal element movement and overlaps.
The header, with its variable package name and numerous elements (version, provenance, badges, code, docs, etc.), can be very hard to maintain.
This becomes especially tricky as the screen size shrinks, causing misaligned elements.
The idea is to limit the number of variables at play:
Notes
Let me know what you think and if it needs adjustments
I've attached two videos: one with a small name and one with a longer name, to demonstrate that it works well in both cases.
Screen.Recording.2026-02-03.at.16.26.45.mov
Screen.Recording.2026-02-03.at.16.26.02.mov