diff --git a/src/components/chat/view/subcomponents/CommandMenu.tsx b/src/components/chat/view/subcomponents/CommandMenu.tsx index b05fc2c..0289a94 100644 --- a/src/components/chat/view/subcomponents/CommandMenu.tsx +++ b/src/components/chat/view/subcomponents/CommandMenu.tsx @@ -156,7 +156,7 @@ export default function CommandMenu({ return (
No commands available @@ -169,13 +169,13 @@ export default function CommandMenu({ ref={menuRef} role="listbox" aria-label="Available commands" - className="command-menu" + className="command-menu border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-800" style={{ ...menuPosition, ...menuBaseStyle, opacity: isOpen ? 1 : 0, transform: isOpen ? 'translateY(0)' : 'translateY(-10px)' }} > {orderedNamespaces.map((namespace) => (
{orderedNamespaces.length > 1 && ( -
+
{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 && {'<-'}}
); })}
))} - -
); }