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), ...resetComponent(token),
position: 'relative', position: 'relative',
display: 'inline-block', display: 'inline-block',
width: 'fit-content',
lineHeight: 1, lineHeight: 1,
[`${componentCls}-count`]: { [`${componentCls}-count`]: {

Loading…
Cancel
Save