Skip to content

Commit

Permalink
fix(component): badge auto width
Browse files Browse the repository at this point in the history
  • Loading branch information
AydenGen committed Dec 19, 2022
1 parent 0eaf2b4 commit a6c4b26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/badge/style/index.tsx
Expand Up @@ -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`]: {
Expand Down

0 comments on commit a6c4b26

Please sign in to comment.