Skip to content

Commit d57af40

Browse files
committed
fix(web): use shared combobox input styling
1 parent fb2b086 commit d57af40

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

‎apps/web/src/components/settings/ProjectsSettings.tsx‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,14 @@ function ScopePicker({
6060
<ChevronDownIcon aria-hidden className="-me-1 size-3 opacity-50" />
6161
</ComboboxTrigger>
6262
<ComboboxPopup align="start" className="w-64">
63-
<div className="shrink-0 px-3 pt-2.5">
64-
<div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring">
65-
<SearchIcon
66-
aria-hidden
67-
className="pointer-events-none absolute top-1.5 left-0 size-4 shrink-0 text-muted-foreground/55"
68-
/>
69-
<ComboboxInput
70-
aria-label={`Search ${label}s`}
71-
className="[&_input]:h-6.5 [&_input]:ps-5 [&_input]:font-sans [&_input]:leading-6.5"
72-
inputClassName="rounded-none bg-transparent text-sm"
73-
placeholder={`Search ${label}s...`}
74-
showTrigger={false}
75-
size="sm"
76-
unstyled
77-
/>
78-
</div>
63+
<div className="shrink-0 p-2">
64+
<ComboboxInput
65+
aria-label={`Search ${label}s`}
66+
placeholder={`Search ${label}s...`}
67+
startAddon={<SearchIcon />}
68+
showTrigger={false}
69+
size="sm"
70+
/>
7971
</div>
8072
<ComboboxEmpty>No matching {label}s.</ComboboxEmpty>
8173
<ComboboxList>

0 commit comments

Comments
 (0)