Skip to content

Commit 600bcb6

Browse files
committed
Remove cap on unread notification count.
1 parent dd32cf0 commit 600bcb6

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ts/components/icon/SessionNotificationCount.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const StyledCountContainer = styled.div<{ shouldRender: boolean }>`
1111
line-height: 1.2;
1212
top: 27px;
1313
left: 28px;
14-
padding: 1px 4px;
14+
padding: 1px 1px;
1515
opacity: 1;
1616
display: flex;
1717
align-items: center;
@@ -33,19 +33,8 @@ const StyledCount = styled.div`
3333

3434
export const SessionNotificationCount = (props: Props) => {
3535
const { count } = props;
36-
const overflow = Boolean(count && count > 99);
3736
const shouldRender = Boolean(count && count > 0);
3837

39-
if (overflow) {
40-
return (
41-
<StyledCountContainer shouldRender={shouldRender}>
42-
<StyledCount>
43-
{99}
44-
<span>+</span>
45-
</StyledCount>
46-
</StyledCountContainer>
47-
);
48-
}
4938
return (
5039
<StyledCountContainer shouldRender={shouldRender}>
5140
<StyledCount>{count}</StyledCount>

0 commit comments

Comments
 (0)