badge: trim the height-fix comment
This commit is contained in:
parent
3405ba2422
commit
4fbfd4dc52
1 changed files with 1 additions and 11 deletions
|
|
@ -90,17 +90,7 @@
|
||||||
}
|
}
|
||||||
.ui-badge-value {
|
.ui-badge-value {
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
/* mara: "thinking badge size is bigger for some reason" — several
|
/* Fixes badge with emoji having different size. */
|
||||||
badges fold a leading glyph straight into their value text
|
|
||||||
(STATE_LABELS' emoji, the pause/resume "⏸"/"▶"), and an emoji's
|
|
||||||
(or its tofu fallback's) own line-box commonly exceeds the
|
|
||||||
surrounding text's `line-height: 1.4` in most fonts, inflating
|
|
||||||
just that badge's height against its siblings. A tight
|
|
||||||
`line-height: 1` on the value span forces every badge back to the
|
|
||||||
same box regardless of which glyph a specific state happens to
|
|
||||||
carry — verified with a real headless-chromium repro of the exact
|
|
||||||
"thinking"/"pause" mismatch from her screenshot, both before and
|
|
||||||
after. */
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
.ui-badge-caret {
|
.ui-badge-caret {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue