Align warning styles for agent mentions

This commit is contained in:
zhsama
2026-01-16 15:01:11 +08:00
parent 0f3156dfbe
commit 7222a896d8
3 changed files with 69 additions and 4 deletions

View File

@ -190,7 +190,10 @@ const Node: FC<NodeProps<ToolNodeType>> = ({
{referenceItems.map(item => (
<div
key={item.key}
className="flex h-6 items-center justify-between space-x-1 rounded-md bg-workflow-block-parma-bg px-1 text-xs font-normal text-text-secondary"
className={cn(
'flex h-6 items-center justify-between space-x-1 rounded-md px-1 text-xs font-normal text-text-secondary',
item.hasWarning ? 'bg-components-badge-status-light-warning-halo' : 'bg-workflow-block-parma-bg',
)}
>
<div className="flex min-w-0 items-center gap-1">
<BlockIcon