Skip to content

Commit bc76cf6

Browse files
committed
fix: qa feedback - fixed count overflow styling in notificationCount
1 parent e28c5e9 commit bc76cf6

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

ts/components/icon/SessionNotificationCount.tsx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,9 @@ const StyledCountContainer = styled.div<{ shouldRender: boolean }>`
2727
color: var(--unread-messages-alert-text-color);
2828
`;
2929

30-
const StyledCount = styled.div<{ countOverflow: boolean }>`
30+
const StyledCount = styled.div`
3131
position: relative;
32-
font-size: ${props => (props.countOverflow ? '0.5em' : '0.6em')};
33-
margin-top: ${props => (props.countOverflow ? '0.35em' : '0em')};
34-
margin-left: ${props => (props.countOverflow ? '-0.45em' : '0em')};
35-
`;
36-
37-
const StyledCountSup = styled.div`
38-
position: absolute;
39-
font-size: 1.3em;
40-
top: -0.5em;
41-
margin-inline-start: 0.375em;
32+
font-size: 0.6em;
4233
`;
4334

4435
export const SessionNotificationCount = (props: Props) => {
@@ -49,16 +40,16 @@ export const SessionNotificationCount = (props: Props) => {
4940
if (overflow) {
5041
return (
5142
<StyledCountContainer shouldRender={shouldRender}>
52-
<StyledCount countOverflow={overflow}>
43+
<StyledCount>
5344
{9}
54-
<StyledCountSup>+</StyledCountSup>
45+
<span>+</span>
5546
</StyledCount>
5647
</StyledCountContainer>
5748
);
5849
}
5950
return (
6051
<StyledCountContainer shouldRender={shouldRender}>
61-
<StyledCount countOverflow={overflow}>{count}</StyledCount>
52+
<StyledCount>{count}</StyledCount>
6253
</StyledCountContainer>
6354
);
6455
};

0 commit comments

Comments
 (0)