Browse Source

fix(component): badge auto width (#39605)

pull/39655/head
Ayden 2 years ago
committed by GitHub
parent
commit
e60a7f711a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/badge/style/index.tsx

1
components/badge/style/index.tsx

@ -101,6 +101,7 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token: BadgeToken): CSSO
...resetComponent(token),
position: 'relative',
display: 'inline-block',
width: 'fit-content',
lineHeight: 1,
[`${componentCls}-count`]: {

Loading…
Cancel
Save