jsr-io / jsr

The open-source package registry for modern JavaScript and TypeScript
https://jsr.io
MIT License
2.53k stars 117 forks source link

package headers should have a minimum height so nav doesn't move #386

Open donjo opened 7 months ago

donjo commented 7 months ago
Screenshot 2024-04-16 at 9 54 27 AM Screenshot 2024-04-16 at 9 54 12 AM

If you're browsing a package with a short or non-existent description clicking a tab that isn't tied to a specific package version, like the score tab, will cause the UI to shift around since the "published" content block is no longer displaying. The overall header should probably have a minimum height set to whatever the shortest possible header with a published date is.

blackwatertepes commented 6 months ago

Wouldn't it be better to keep the "published" content block across all tabs, instead of it disappearing?