Skip to content

Commit 1e64afe

Browse files
committed
fix: no bg for searchinput in leftpane
1 parent 5f5f906 commit 1e64afe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ts/components/SessionSearchInput.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const StyledSearchInput = styled.div`
2424
align-items: center;
2525
flex-shrink: 0;
2626
padding-inline: var(--margins-sm);
27+
border-radius: 100px;
2728
`;
2829

2930
const StyledInput = styled.input`
@@ -87,12 +88,14 @@ export const SessionSearchInput = ({ searchType }: { searchType: SearchType }) =
8788
? localize('searchContacts').toString()
8889
: localize('search').toString();
8990

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;
9194

9295
return (
9396
<StyledSearchInput
9497
data-testid={isGroupCreationSearch ? 'search-contacts-field' : undefined}
95-
style={{ borderRadius }}
98+
style={{ backgroundColor }}
9699
>
97100
<LucideIcon
98101
iconColor="var(--search-bar-icon-color)"

0 commit comments

Comments
 (0)