Skip to content

Commit 328367f

Browse files
committed
style(badge): added a min-inline-size
especially for single character contents
1 parent 152c363 commit 328367f

File tree

1 file changed

+2
-0
lines changed
  • packages/components/src/components/badge

1 file changed

+2
-0
lines changed

packages/components/src/components/badge/badge.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
block-size: fit-content;
5555
inline-size: fit-content;
5656
font-weight: 700;
57+
min-inline-size: calc(1.4em - 2 * #{variables.$db-spacing-fixed-2xs});
58+
box-sizing: content-box;
5759

5860
&:has(.db-icon) {
5961
padding: variables.$db-spacing-fixed-3xs;

0 commit comments

Comments
 (0)