From e60a7f711a199ae1a04054211442dc2c3a81e325 Mon Sep 17 00:00:00 2001 From: Ayden Date: Mon, 19 Dec 2022 16:54:13 +0800 Subject: [PATCH] fix(component): badge auto width (#39605) --- components/badge/style/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/badge/style/index.tsx b/components/badge/style/index.tsx index 7252713daa..89b51f4835 100644 --- a/components/badge/style/index.tsx +++ b/components/badge/style/index.tsx @@ -101,6 +101,7 @@ const genSharedBadgeStyle: GenerateStyle = (token: BadgeToken): CSSO ...resetComponent(token), position: 'relative', display: 'inline-block', + width: 'fit-content', lineHeight: 1, [`${componentCls}-count`]: {