Fix size of post numbers with emoji-only posts (#11471)

This commit is contained in:
DS Boyce
2026-08-14 12:58:55 -07:00
committed by GitHub
parent bd920d80e0
commit 221c4d9c5b
@@ -60,7 +60,13 @@ export function ThreadItemPostNumber({
inline
? platform({
native: {transform: [{translateY: POST_NUMBER_INLINE_OFFSET}]},
web: {top: -2, marginBottom: -2},
web: {
top: -2,
marginBottom: -2,
// Inline views inherit the surrounding line height on web. Keep
// the badge at its usual size when emoji-only text enlarges it.
lineHeight: a.text_xs.fontSize * a.leading_normal.lineHeight,
},
})
: {top: -2, marginBottom: -2},
]}>