Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions apps/ui/app/particles/search-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,16 @@ export default function SearchField({
open={open}
value={selectedItems}
>
<ComboboxChips className="rounded-xl p-[calc(--spacing(2)-1px)] before:rounded-xl">
<HugeiconsIcon
className="ms-[calc(--spacing(2)-1px)] me-[calc(--spacing(2)-1px)] size-5 shrink-0 opacity-80"
icon={Search01Icon}
strokeWidth={2}
/>
<ComboboxChips
className="**:data-[slot=combobox-start-addon]:[&_svg]:-me-0.5 rounded-xl p-[calc(--spacing(2)-1px)] before:rounded-xl"
startAddon={
<HugeiconsIcon
className="size-5.5 sm:size-5"
icon={Search01Icon}
strokeWidth={2}
/>
}
>
<ComboboxValue>
{(
value: { value: string; label: string; isComponent?: boolean }[],
Expand Down Expand Up @@ -193,8 +197,6 @@ export default function SearchField({
<ComboboxInput
aria-label="Search components"
autoFocus
className="ps-0"
showClear
size="lg"
/>
</>
Expand All @@ -206,7 +208,9 @@ export default function SearchField({
<ComboboxList>
{(group: (typeof groupedItems)[number]) => (
<React.Fragment key={group.type}>
{group.type === "disabled" && <ComboboxSeparator />}
{group.type === "disabled" && (
<ComboboxSeparator className="my-2" />
)}
<ComboboxGroup items={group.items}>
<ComboboxGroupLabel>
{group.type === "enabled"
Expand Down
Loading
Loading