Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 6e6764a

Browse files
committed
search design
1 parent b41546d commit 6e6764a

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/components/reducers/GlobalFilter.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ export default function GlobalFilter(globalFilterProps: GlobalFilterProps) {
2020
return (
2121
<Search>
2222
<SearchIconWrapper>
23-
<SearchIcon />
23+
<div
24+
style={{
25+
listStyleType: "none",
26+
}}
27+
>
28+
<li>
29+
<SearchIcon />
30+
</li>
31+
<li>{hits}</li>
32+
</div>
2433
</SearchIconWrapper>
2534
<DebouncedInputWrapper>
2635
<DebouncedInput
2736
value={globalFilter ?? ""}
2837
onChange={(value) => setGlobalFilter(String(value))}
29-
placeholder={`Search... (${hits})`}
38+
placeholder={`Search...`}
3039
/>
3140
</DebouncedInputWrapper>
3241
</Search>

src/components/styles/NavBarStyles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ export const Search = styled('div')(({ theme }) => ({
1818
}));
1919

2020
export const SearchIconWrapper = styled('div')(({ theme }) => ({
21-
padding: theme.spacing(0, 2),
21+
padding: theme.spacing(0, 1),
2222
height: '100%',
2323
position: 'absolute',
2424
pointerEvents: 'none',
2525
display: 'flex',
2626
alignItems: 'center',
2727
justifyContent: 'center',
28+
textAlign: 'center'
2829
}));
2930

3031
export const DebouncedInputWrapper = styled('div')(({ theme }) => ({

0 commit comments

Comments
 (0)