fix(badge): number centered but slightly right-aligned (#48605)

This commit is contained in:
Akino 2024-04-24 14:11:14 +08:00 committed by GitHub
parent 11a160cb25
commit cba15332ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,6 +136,8 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token) => {
lineHeight: 1, lineHeight: 1,
[`${componentCls}-count`]: { [`${componentCls}-count`]: {
display: 'inline-flex',
justifyContent: 'center',
zIndex: token.indicatorZIndex, zIndex: token.indicatorZIndex,
minWidth: indicatorHeight, minWidth: indicatorHeight,
height: indicatorHeight, height: indicatorHeight,