Skip to content

Fix: updated column is balanced with package links#57

Merged
danielroe merged 2 commits intonpmx-dev:mainfrom
jhroemer:fix-updated-column-is-balanced-with-package-links
Jan 25, 2026
Merged

Fix: updated column is balanced with package links#57
danielroe merged 2 commits intonpmx-dev:mainfrom
jhroemer:fix-updated-column-is-balanced-with-package-links

Conversation

@jhroemer
Copy link
Copy Markdown
Contributor

@jhroemer jhroemer commented Jan 25, 2026

This PR balances the license/downloads/deps etc. row somewhat with the package links row beneath it, by right-aligning the last column. Also, currently if there are no dependencies, the deps column is hidden, causing install size and updated to shift a position to the left. I think it's worth showing deps even if the value is 0 - a user might be looking for the section, not finding it, and not realizing that this is because the package has none. Showing it, even if the value is 0, makes this very clear. The npmgraph link should probably be hidden though.

Before:
Screenshot 2026-01-25 at 08 13 31

Screenshot 2026-01-25 at 08 13 03

After:
Screenshot 2026-01-25 at 08 12 30

Again, just a proposal :-)

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 25, 2026

@jhroemer is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

</div>

<div v-if="getDependencyCount(displayVersion) > 0" class="space-y-1">
<div class="space-y-1">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Arguably this could be its own change, as a precursor for right-aligning the last column (right aligning without showing deps looks pretty bad). Happy to break it up into separate PR's if you want.

@jhroemer
Copy link
Copy Markdown
Contributor Author

Maybe this is a dumb idea, but we should almost add some kind of extra highlighting in the deps column when there's none. It's a good thing!

Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

❤️

@danielroe danielroe merged commit efb93ae into npmx-dev:main Jan 25, 2026
7 of 8 checks passed
@danielroe
Copy link
Copy Markdown
Member

oops - need to fix mobile alignment

image

@jhroemer
Copy link
Copy Markdown
Contributor Author

oops - need to fix mobile alignment

image

Ah shit, that’s my bad, sorry!

vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
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