Skip to content

[6.x] Increase inline padding of badge slightly based on asset meta badges feeli…#14002

Open
JayGeorge wants to merge 1 commit into6.xfrom
tweak-badge-x-padding
Open

[6.x] Increase inline padding of badge slightly based on asset meta badges feeli…#14002
JayGeorge wants to merge 1 commit into6.xfrom
tweak-badge-x-padding

Conversation

@JayGeorge
Copy link
Contributor

@JayGeorge JayGeorge commented Feb 19, 2026

Description of the Problem

  • The space between the edges of the text and the radii of the badges is a little too tight, especially when caps are used e.g. 100 KB
  • Increasing the inline padding slightly makes it feel better to my eyes

What this PR Does

  • Increases the inline padding of the standard badge size so that text fits more comfortably

Before

2026-02-19 at 13 06 56@2x

After

2026-02-19 at 13 07 54@2x

How to Reproduce

  1. You can see this it the asset meta badges if you open up an asset in the cp

@daun
Copy link
Contributor

daun commented Feb 19, 2026

Which image format is that? Interesting that it allows subpixel image dimensions (114.38815px height).

@JayGeorge
Copy link
Contributor Author

Oh hah, I didn't even notice that. Probably a separate issue—it wasn't me, your honor!

@daun
Copy link
Contributor

daun commented Feb 19, 2026

Is it an SVG? Just remembered I've seen subpixel SVGs in use sometimes. No issue, then, but might still make sense to round to 1 decimal place in display.

@JayGeorge
Copy link
Contributor Author

It was an SVG indeed! I'll submit a separate PR, cheers Daun 🤘

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

Comments