+
{namespaceLabels[namespace] || namespace}
)}
@@ -190,69 +190,35 @@ export default function CommandMenu({
ref={isSelected ? selectedItemRef : null}
role="option"
aria-selected={isSelected}
- className="command-item"
+ className={`command-item mb-0.5 flex cursor-pointer items-start rounded-md px-3 py-2.5 transition-colors ${
+ isSelected ? 'bg-blue-50 dark:bg-blue-900' : 'bg-transparent'
+ }`}
onMouseEnter={() => onSelect && commandIndex >= 0 && onSelect(command, commandIndex, true)}
onClick={() => onSelect && onSelect(command, commandIndex, false)}
onMouseDown={(event) => event.preventDefault()}
- style={{ display: 'flex', alignItems: 'flex-start', padding: '10px 12px', borderRadius: '6px', cursor: 'pointer', backgroundColor: isSelected ? '#eff6ff' : 'transparent', transition: 'background-color 100ms ease-in-out', marginBottom: '2px' }}
>
-
-
-
{namespaceIcons[namespace] || namespaceIcons.other}
-
{command.name}
+
+
+ {namespaceIcons[namespace] || namespaceIcons.other}
+ {command.name}
{command.metadata?.type && (
-
+
{command.metadata.type}
)}
{command.description && (
-
+
{command.description}
)}
- {isSelected &&
{'<-'}}
+ {isSelected &&
{'<-'}}
);
})}
))}
-
-
);
}