Skip to content

fix: improved responsiveness for smaller screens#422

Closed
Flo0806 wants to merge 3 commits intonpmx-dev:mainfrom
Flo0806:fix/detail-mobile-issue
Closed

fix: improved responsiveness for smaller screens#422
Flo0806 wants to merge 3 commits intonpmx-dev:mainfrom
Flo0806:fix/detail-mobile-issue

Conversation

@Flo0806
Copy link
Copy Markdown
Contributor

@Flo0806 Flo0806 commented Jan 30, 2026

fixes: #410


try new positions for chips and tabs for better responsiveness on smaller screens (detail page)

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 1, 2026 1:31pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 1, 2026 1:31pm
npmx-lunaria Ignored Ignored Feb 1, 2026 1:31pm

Request Review

@garthdw
Copy link
Copy Markdown
Contributor

garthdw commented Jan 30, 2026

Personally it feels like the docs/code buttons are too close to the chips.

I wonder if keeping the version next to the package name would separate them a bit more?

image

I guess there's only a ton of space because I am looking at vue and not something with a longer name.

@Flo0806
Copy link
Copy Markdown
Contributor Author

Flo0806 commented Jan 30, 2026

the thing is: what to do with longer package names? handle it separately or use one way. What is your idea?

@serhalp
Copy link
Copy Markdown
Member

serhalp commented Jan 30, 2026

👁️ I'm adding a 'compare to... c' to the docs/code panel over in #201 and running into similar issues (or rather... I'm making it worse). it might be worth stepping back and rethinking this design in general? 🤔 not sure, but I might noodle on it...

@MatteoGabriele
Copy link
Copy Markdown
Member

My 2 cents is that, since the package name has such a variable length, it might be worth letting it stand alone and re-arranging other pieces of the UI away from the name

- Use main's improved mobile responsiveness layout
- Keep mobile-only docs/code/compare links
- Use updated PackageMetricsBadges component
@MatteoGabriele
Copy link
Copy Markdown
Member

There are a couple of things to check as well, in my opinion.

  • Remove the spacing on the left side of the package name for better alignment
  • Center align the version and chips; otherwise, it looks a bit off
Screenshot 2026-02-01 at 13 38 05

@Flo0806
Copy link
Copy Markdown
Contributor Author

Flo0806 commented Feb 1, 2026

@danielroe Are you on it just now? Otherwise I'll fix this finally.

@danielroe
Copy link
Copy Markdown
Member

IMO the version should remain where it is, and these 'chips' should behave as a unit, and either all go to the next line, or all stay on the previous line

@MatteoGabriele
Copy link
Copy Markdown
Member

@danielroe, as you can see from this comment on the issue, after a recent update, they already kinda behave like that #410 (comment)

@danielroe
Copy link
Copy Markdown
Member

perfect - I think that works.

@danielroe
Copy link
Copy Markdown
Member

thank you as always @Flo0806 - sorry a fix got merged first 🙏

@danielroe danielroe closed this Feb 2, 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.

Layout spacing breaks for long package names

5 participants