This commit is contained in:
Fahleen Arif 2026-04-05 02:23:09 +00:00 committed by GitHub
commit f48f57da19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,10 +47,10 @@ const AgentCard: React.FC<AgentCardProps> = ({ agent, onSelect, className = '' }
<OGDialogTrigger asChild>
<div
className={cn(
'group relative flex h-32 gap-5 overflow-hidden rounded-xl',
'group relative flex h-40 gap-5 overflow-hidden rounded-xl',
'cursor-pointer select-none px-6 py-4',
'bg-surface-tertiary transition-colors duration-150 hover:bg-surface-hover',
'md:h-36 lg:h-40',
'md:min-h-36 lg:min-h-40',
'[&_*]:cursor-pointer',
className,
)}
@ -70,7 +70,7 @@ const AgentCard: React.FC<AgentCardProps> = ({ agent, onSelect, className = '' }
>
{/* Category badge - top right */}
{categoryLabel && (
<span className="absolute right-4 top-3 rounded-md bg-surface-hover px-2 py-0.5 text-xs text-text-secondary">
<span className="absolute right-3 top-2 rounded-md bg-surface-hover px-2 py-0.5 text-xs text-text-secondary">
{categoryLabel}
</span>
)}
@ -85,7 +85,7 @@ const AgentCard: React.FC<AgentCardProps> = ({ agent, onSelect, className = '' }
{/* Content */}
<div className="flex min-w-0 flex-1 flex-col justify-center overflow-hidden">
{/* Agent name */}
<Label className="line-clamp-2 text-base font-semibold text-text-primary md:text-lg">
<Label className="line-clamp-2 mt-3 text-base font-semibold text-text-primary md:text-lg">
{agent.name}
</Label>
@ -93,7 +93,7 @@ const AgentCard: React.FC<AgentCardProps> = ({ agent, onSelect, className = '' }
{agent.description && (
<p
id={`agent-${agent.id}-description`}
className="mt-0.5 line-clamp-2 text-sm leading-snug text-text-secondary md:line-clamp-5"
className="mt-0.5 line-clamp-2 text-sm leading-snug text-text-secondary md:line-clamp-3"
aria-label={localize('com_agents_description_card', {
description: agent.description,
})}