Fix search bar alignment
This commit is contained in:
@@ -360,8 +360,8 @@ function App() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="flex gap-4 items-center">
|
<div className="flex gap-4 items-center justify-between">
|
||||||
<div className="relative flex-1">
|
<div className="relative flex-1 max-w-md">
|
||||||
<Search className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
|
<Search className="absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" />
|
||||||
<Input
|
<Input
|
||||||
ref={searchInputRef}
|
ref={searchInputRef}
|
||||||
@@ -369,7 +369,7 @@ function App() {
|
|||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
onChange={(e) => setSearchQuery(e.target.value)}
|
onChange={(e) => setSearchQuery(e.target.value)}
|
||||||
onKeyDown={handleSearchKeyDown}
|
onKeyDown={handleSearchKeyDown}
|
||||||
className="pl-8 pr-8 bg-gray-50 dark:bg-gray-950/30 max-w-md"
|
className="pl-8 pr-8 bg-gray-50 dark:bg-gray-950/30"
|
||||||
/>
|
/>
|
||||||
{searchQuery && (
|
{searchQuery && (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user