Skip to content

Custom badges width too wide #2187

@trueberryless

Description

@trueberryless

Describe the bug

The width of custom badges is very wide, producing a lot of wasted whitespace, especially the longer the generated content is.

Example: https://main.npmx.dev/api/registry/badge/engines/vitest

Image

Additional context

When I run pnpm dev locally and go to http://localhost:3000/api/registry/badge/engines/vitest it looks like I would expect it.

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    backServer, Data

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions