shields icon indicating copy to clipboard operation
shields copied to clipboard

fix: keep logo & text alignments consistent

Open LitoMore opened this issue 4 months ago • 4 comments

Some of our current badges have some inconsistent spacing. Especially the logo-only badge. I've fixed/changed them to be consistent.

I've attached the 5x zoom level preview image with measurements. As you can see, some badges don't have consistent left-right padding. But if the numbers differ by only 1, it can be ignored.

I didn't change the style of the social badge since its design is a bit special. I think the padding is fine. Please let me know if you want the social badge to be changed as well.

The measurement tool I use: PixelSnap 2.

img.shields.io

![](https://img.shields.io/badge/M-M-000) ![](https://img.shields.io/badge/-M-000) ![](https://img.shields.io/badge/M-M-000?logo=npm) ![](https://img.shields.io/badge/-M-000?logo=npm) ![](https://img.shields.io/badge/--000?logo=npm)\
![](https://img.shields.io/badge/M-M-000?style=flat-square) ![](https://img.shields.io/badge/-M-000?style=flat-square) ![](https://img.shields.io/badge/M-M-000?logo=npm&style=flat-square) ![](https://img.shields.io/badge/-M-000?logo=npm&style=flat-square) ![](https://img.shields.io/badge/--000?logo=npm&style=flat-square)\
![](https://img.shields.io/badge/M-M-000?style=plastic) ![](https://img.shields.io/badge/-M-000?style=plastic) ![](https://img.shields.io/badge/M-M-000?logo=npm&style=plastic) ![](https://img.shields.io/badge/-M-000?logo=npm&style=plastic) ![](https://img.shields.io/badge/--000?logo=npm&style=plastic)\
![](https://img.shields.io/badge/M-M-000?style=for-the-badge) ![](https://img.shields.io/badge/-M-000?style=for-the-badge) ![](https://img.shields.io/badge/M-M-000?logo=npm&style=for-the-badge) ![](https://img.shields.io/badge/-M-000?logo=npm&style=for-the-badge) ![](https://img.shields.io/badge/--000?logo=npm&style=for-the-badge)\
![](https://img.shields.io/badge/M-M-000?style=social) ![](https://img.shields.io/badge/-M-000?style=social) ![](https://img.shields.io/badge/M-M-000?logo=npm&style=social) ![](https://img.shields.io/badge/-M-000?logo=npm&style=social) ![](https://img.shields.io/badge/--000?logo=npm&style=social)





pr-11284-badges-shields.fly.dev

![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000) ![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?logo=npm) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?logo=npm) ![](https://pr-11284-badges-shields.fly.dev/badge/--000?logo=npm)\
![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?style=flat-square) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?style=flat-square) ![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?logo=npm&style=flat-square) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?logo=npm&style=flat-square) ![](https://pr-11284-badges-shields.fly.dev/badge/--000?logo=npm&style=flat-square)\
![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?style=plastic) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?style=plastic) ![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?logo=npm&style=plastic) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?logo=npm&style=plastic) ![](https://pr-11284-badges-shields.fly.dev/badge/--000?logo=npm&style=plastic)\
![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?style=for-the-badge) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?style=for-the-badge) ![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?logo=npm&style=for-the-badge) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?logo=npm&style=for-the-badge) ![](https://pr-11284-badges-shields.fly.dev/badge/--000?logo=npm&style=for-the-badge)\
![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?style=social) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?style=social) ![](https://pr-11284-badges-shields.fly.dev/badge/M-M-000?logo=npm&style=social) ![](https://pr-11284-badges-shields.fly.dev/badge/-M-000?logo=npm&style=social) ![](https://pr-11284-badges-shields.fly.dev/badge/--000?logo=npm&style=social)





localhost:8080

GitHub cannot display localhost assets since they have Camo for caching resources. But these links might be helpful for you to review.

Markdown

![](http://localhost:8080/badge/M-M-000) ![](http://localhost:8080/badge/-M-000) ![](http://localhost:8080/badge/M-M-000?logo=npm) ![](http://localhost:8080/badge/-M-000?logo=npm) ![](http://localhost:8080/badge/--000?logo=npm)\
![](http://localhost:8080/badge/M-M-000?style=flat-square) ![](http://localhost:8080/badge/-M-000?style=flat-square) ![](http://localhost:8080/badge/M-M-000?logo=npm&style=flat-square) ![](http://localhost:8080/badge/-M-000?logo=npm&style=flat-square) ![](http://localhost:8080/badge/--000?logo=npm&style=flat-square)\
![](http://localhost:8080/badge/M-M-000?style=plastic) ![](http://localhost:8080/badge/-M-000?style=plastic) ![](http://localhost:8080/badge/M-M-000?logo=npm&style=plastic) ![](http://localhost:8080/badge/-M-000?logo=npm&style=plastic) ![](http://localhost:8080/badge/--000?logo=npm&style=plastic)\
![](http://localhost:8080/badge/M-M-000?style=for-the-badge) ![](http://localhost:8080/badge/-M-000?style=for-the-badge) ![](http://localhost:8080/badge/M-M-000?logo=npm&style=for-the-badge) ![](http://localhost:8080/badge/-M-000?logo=npm&style=for-the-badge) ![](http://localhost:8080/badge/--000?logo=npm&style=for-the-badge)\
![](http://localhost:8080/badge/M-M-000?style=social) ![](http://localhost:8080/badge/-M-000?style=social) ![](http://localhost:8080/badge/M-M-000?logo=npm&style=social) ![](http://localhost:8080/badge/-M-000?logo=npm&style=social) ![](http://localhost:8080/badge/--000?logo=npm&style=social)

HTML

<img src="http://localhost:8080/badge/M-M-000" />
<img src="http://localhost:8080/badge/-M-000" />
<img src="http://localhost:8080/badge/M-M-000?logo=npm" />
<img src="http://localhost:8080/badge/-M-000?logo=npm" />
<img src="http://localhost:8080/badge/--000?logo=npm" />
<br />
<img src="http://localhost:8080/badge/M-M-000?style=flat-square" />
<img src="http://localhost:8080/badge/-M-000?style=flat-square" />
<img src="http://localhost:8080/badge/M-M-000?logo=npm&style=flat-square" />
<img src="http://localhost:8080/badge/-M-000?logo=npm&style=flat-square" />
<img src="http://localhost:8080/badge/--000?logo=npm&style=flat-square" />
<br />
<img src="http://localhost:8080/badge/M-M-000?style=plastic" />
<img src="http://localhost:8080/badge/-M-000?style=plastic" />
<img src="http://localhost:8080/badge/M-M-000?logo=npm&style=plastic" />
<img src="http://localhost:8080/badge/-M-000?logo=npm&style=plastic" />
<img src="http://localhost:8080/badge/--000?logo=npm&style=plastic" />
<br />
<img src="http://localhost:8080/badge/M-M-000?style=for-the-badge" />
<img src="http://localhost:8080/badge/-M-000?style=for-the-badge" />
<img src="http://localhost:8080/badge/M-M-000?logo=npm&style=for-the-badge" />
<img src="http://localhost:8080/badge/-M-000?logo=npm&style=for-the-badge" />
<img src="http://localhost:8080/badge/--000?logo=npm&style=for-the-badge"/>
<br />
<img src="http://localhost:8080/badge/M-M-000?style=social" />
<img src="http://localhost:8080/badge/-M-000?style=social" />
<img src="http://localhost:8080/badge/M-M-000?logo=npm&style=social" />
<img src="http://localhost:8080/badge/-M-000?logo=npm&style=social" />
<img src="http://localhost:8080/badge/--000?logo=npm&style=social" />

LitoMore avatar Aug 12 '25 15:08 LitoMore

Messages
:book: :sparkles: Thanks for your contribution to Shields, @LitoMore!

Generated by :no_entry_sign: dangerJS against 4940ae76fc10b34d7d289de89920ac0b8119dc18

github-actions[bot] avatar Aug 12 '25 15:08 github-actions[bot]

🚀 Updated review app: https://pr-11284-badges-shields.fly.dev

github-actions[bot] avatar Aug 12 '25 19:08 github-actions[bot]

I've attached two 5x zoom level images with measurements to the PR description. It appears that the logo-only in-for-the-badge style still has an alignment issue. I will look into it.

LitoMore avatar Aug 12 '25 21:08 LitoMore

I've fixed the style of the for-the-badge. I also updated its 5x preview image. The 1x preview may require your deployment to update.

LitoMore avatar Aug 12 '25 22:08 LitoMore