File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const StyledSearchInput = styled.div`
24
24
align-items: center;
25
25
flex-shrink: 0;
26
26
padding-inline: var(--margins-sm);
27
+ border-radius: 100px;
27
28
` ;
28
29
29
30
const StyledInput = styled . input `
@@ -87,12 +88,14 @@ export const SessionSearchInput = ({ searchType }: { searchType: SearchType }) =
87
88
? localize ( 'searchContacts' ) . toString ( )
88
89
: localize ( 'search' ) . toString ( ) ;
89
90
90
- const borderRadius = searchType === 'global' || searchType === 'create-group' ? '0' : '100px' ;
91
+ const isInMainScreen = searchType === 'global' || searchType === 'create-group' ;
92
+
93
+ const backgroundColor = isInMainScreen ? 'transparent' : undefined ;
91
94
92
95
return (
93
96
< StyledSearchInput
94
97
data-testid = { isGroupCreationSearch ? 'search-contacts-field' : undefined }
95
- style = { { borderRadius } }
98
+ style = { { backgroundColor } }
96
99
>
97
100
< LucideIcon
98
101
iconColor = "var(--search-bar-icon-color)"
You can’t perform that action at this time.
0 commit comments