Fix: use logical padding for badge text to fix RTL spacing

Replace `padding-right` with `padding-inline-end` on badge title and GitHub label. 

Fixes text hugging the edge in RTL languages, like Hebrew.

No visual change for LTR.
This commit is contained in:
Niv Leibovich 2026-06-05 00:34:32 +03:00 committed by GitHub
parent b7c28eacd4
commit c68f50f7e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ body {
.inline-badge .gh-type {
display: inline-block;
font-size: var(--inline-badge-font-size);
padding-right: .5em;
padding-inline-end: .5em;
padding-top: .15em;
}
.inline-badge .inline-badge-extra {
@ -46,7 +46,7 @@ body {
display: inline-block;
font-size: var(--inline-badge-font-size);
font-weight: inherit;
padding-right: 5px;
padding-inline-end: 5px;
padding-top: 2px;
}
.inline-badge[data-inline-badge="info"],