|
9 | 9 | } from "@t3tools/client-runtime/state/runtime"; |
10 | 10 | import type { ContextMenuItem, EnvironmentId, VcsRef, ThreadId } from "@t3tools/contracts"; |
11 | 11 | import { LegendList, type LegendListRef } from "@legendapp/list/react"; |
12 | | -import { ChevronDownIcon, GitBranchIcon, SearchIcon } from "lucide-react"; |
| 12 | +import { ChevronDownIcon, GitBranchIcon } from "lucide-react"; |
13 | 13 | import { |
14 | 14 | useCallback, |
15 | 15 | useDeferredValue, |
@@ -64,7 +64,7 @@ import { getVirtualizedScrollFadeClassName } from "./ui/scroll-area"; |
64 | 64 | import { |
65 | 65 | Combobox, |
66 | 66 | ComboboxEmpty, |
67 | | - ComboboxInput, |
| 67 | + ComboboxSearchInput, |
68 | 68 | ComboboxItem, |
69 | 69 | ComboboxListVirtualized, |
70 | 70 | ComboboxPopup, |
@@ -824,24 +824,11 @@ export function BranchToolbarBranchSelector({ |
824 | 824 | className="flex w-80 flex-col" |
825 | 825 | {...composerFloatingLayerProps} |
826 | 826 | > |
827 | | - <div className="shrink-0 px-3 pt-2.5"> |
828 | | - <div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring"> |
829 | | - <SearchIcon |
830 | | - aria-hidden="true" |
831 | | - className="pointer-events-none absolute top-1.5 left-0 size-4 shrink-0 text-muted-foreground/55" |
832 | | - /> |
833 | | - <ComboboxInput |
834 | | - className="[&_input]:h-6.5 [&_input]:ps-5 [&_input]:font-sans [&_input]:leading-6.5" |
835 | | - inputClassName="rounded-none bg-transparent text-sm" |
836 | | - placeholder="Search refs..." |
837 | | - showTrigger={false} |
838 | | - size="sm" |
839 | | - unstyled |
840 | | - value={branchQuery} |
841 | | - onChange={(event) => setBranchQuery(event.target.value)} |
842 | | - /> |
843 | | - </div> |
844 | | - </div> |
| 827 | + <ComboboxSearchInput |
| 828 | + placeholder="Search refs..." |
| 829 | + value={branchQuery} |
| 830 | + onChange={(event) => setBranchQuery(event.target.value)} |
| 831 | + /> |
845 | 832 | <div className="flex min-h-0 flex-1 flex-col overflow-hidden"> |
846 | 833 | <ComboboxEmpty>No refs found.</ComboboxEmpty> |
847 | 834 | <div className="relative min-h-0 w-full max-h-56 flex-1 overflow-hidden"> |
|
0 commit comments