Skip to content
Open
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
6 changes: 3 additions & 3 deletions src/components/ui/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default function Autocomplete({
<span className="sr-only">{t("clear")}</span>
</Button>
) : (
<CaretSortIcon className="absolute right-3 top-1/2 -translate-y-1/2 ml-2 size-4 shrink-0 opacity-50" />
<CaretSortIcon className="absolute right-3 top-1/2 -translate-y-1/2 ml-2 size-4 shrink-0 opacity-50 pointer-events-none" />
)}
</div>
);
Expand Down Expand Up @@ -315,14 +315,14 @@ export default function Autocomplete({
) : (
<>
{shortcutId ? (
<div className="absolute right-3 top-1/2 -translate-y-1/2 ">
<div className="absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none">
<div className="flex items-center justify-center gap-1">
<ShortcutBadge actionId={shortcutId} />
<CaretSortIcon className="size-3 shrink-0 opacity-50" />
</div>
</div>
) : (
<CaretSortIcon className="absolute right-3 top-1/2 -translate-y-1/2 ml-2 size-4 shrink-0 opacity-50" />
<CaretSortIcon className="absolute right-3 top-1/2 -translate-y-1/2 ml-2 size-4 shrink-0 opacity-50 pointer-events-none" />
)}
</>
)}
Expand Down
Loading