{filteredItems.length === 0 ? (
No results found
) : (
@@ -329,6 +406,9 @@ export function AgentSelector({
return (
{
+ itemRefs.current[itemIndex] = element;
+ }}
role="button"
tabIndex={-1}
onMouseEnter={() => setSelectedIndex(itemIndex)}
@@ -342,16 +422,21 @@ export function AgentSelector({
}
}}
className={cn(
- "group flex min-h-7 cursor-pointer items-center gap-2 rounded-md px-2 py-1 text-xs transition-colors",
+ "group mb-1 flex min-h-10 cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs transition-colors last:mb-2",
isSelected ? "bg-hover/90" : "bg-transparent",
item.isCurrent && "bg-selected/90 ring-1 ring-accent/10",
!item.isInstalled && item.id !== "custom" && "text-text-lighter",
)}
>
-
+
-
+
{item.name}
{!item.isInstalled && item.id !== "custom" ? (