File tree 2 files changed +10
-4
lines changed
site/src/modules/notifications/NotificationsInbox
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,20 @@ const meta: Meta<typeof UnreadBadge> = {
9
9
export default meta ;
10
10
type Story = StoryObj < typeof UnreadBadge > ;
11
11
12
- export const Default : Story = {
12
+ export const Until10 : Story = {
13
13
args : {
14
14
count : 3 ,
15
15
} ,
16
16
} ;
17
17
18
- export const MoreThanNine : Story = {
18
+ export const MoreThan10 : Story = {
19
19
args : {
20
20
count : 12 ,
21
21
} ,
22
22
} ;
23
+
24
+ export const MoreThan99 : Story = {
25
+ args : {
26
+ count : 1000 ,
27
+ } ,
28
+ } ;
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ export const UnreadBadge: FC<UnreadBadgeProps> = ({
13
13
return (
14
14
< span
15
15
className = { cn ( [
16
- "flex size- [18px] rounded text-2xs items-center justify-center" ,
16
+ "flex min-w- [18px] h-[18px] w-fit px-1 rounded text-2xs items-center justify-center" ,
17
17
"bg-surface-sky text-highlight-sky" ,
18
18
className ,
19
19
] ) }
20
20
{ ...props }
21
21
>
22
- { count > 9 ? "9 +" : count }
22
+ { count > 99 ? "99 +" : count }
23
23
</ span >
24
24
) ;
25
25
} ;
You can’t perform that action at this time.
0 commit comments