File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,9 @@ const StyledCountContainer = styled.div<{ shouldRender: boolean }>`
27
27
color: var(--unread-messages-alert-text-color);
28
28
` ;
29
29
30
- const StyledCount = styled . div < { countOverflow : boolean } > `
30
+ const StyledCount = styled . div `
31
31
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;
42
33
` ;
43
34
44
35
export const SessionNotificationCount = ( props : Props ) => {
@@ -49,16 +40,16 @@ export const SessionNotificationCount = (props: Props) => {
49
40
if ( overflow ) {
50
41
return (
51
42
< StyledCountContainer shouldRender = { shouldRender } >
52
- < StyledCount countOverflow = { overflow } >
43
+ < StyledCount >
53
44
{ 9 }
54
- < StyledCountSup > +</ StyledCountSup >
45
+ < span > +</ span >
55
46
</ StyledCount >
56
47
</ StyledCountContainer >
57
48
) ;
58
49
}
59
50
return (
60
51
< StyledCountContainer shouldRender = { shouldRender } >
61
- < StyledCount countOverflow = { overflow } > { count } </ StyledCount >
52
+ < StyledCount > { count } </ StyledCount >
62
53
</ StyledCountContainer >
63
54
) ;
64
55
} ;
You can’t perform that action at this time.
0 commit comments