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 16, 2022
1 parent a14b53b commit f5d4dad
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 f5d4dad

Please sign in to comment.