Skip to content

Commit c46cd36

Browse files
committed
fix: refactor SearcherBar layout for improved structure and styling
1 parent 3070e98 commit c46cd36

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/modules/SearcherBar.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,27 @@ import { Input } from '@/components/ui/input';
55

66
export function SearcherBar({ className }: { className?: string }) {
77
return (
8-
<div className={cn('relative m-auto w-full max-w-2xl', className)}>
9-
<Input
10-
className="bg-input border-secondary w-full rounded-2xl py-5.5 pr-32 pl-12 sm:py-6.5"
11-
placeholder="Search address or id or txHash"
12-
/>
13-
<Search
14-
size="18"
15-
className="absolute top-1/2 left-4 -translate-y-1/2 sm:left-6"
16-
/>
8+
<div className={cn('m-auto w-full max-w-2xl', className)}>
9+
<div className="relative w-full">
10+
<Input
11+
className="bg-input border-secondary w-full rounded-2xl py-5.5 pl-12 sm:py-6.5 sm:pr-32"
12+
placeholder="Search address or id or txHash"
13+
/>
14+
<Search
15+
size="18"
16+
className="absolute top-1/2 left-4 -translate-y-1/2 sm:left-6"
17+
/>
18+
<Button
19+
variant="outline"
20+
className="bg-input hover:bg-secondary absolute top-1/2 right-4 hidden -translate-y-1/2 sm:flex"
21+
>
22+
My activity
23+
</Button>
24+
</div>
25+
1726
<Button
18-
size="sm"
1927
variant="outline"
20-
className="bg-input hover:bg-secondary absolute top-1/2 right-4 -translate-y-1/2 sm:right-6"
28+
className="mx-auto mt-4 flex w-auto sm:hidden"
2129
>
2230
My activity
2331
</Button>

0 commit comments

Comments
 (0)