mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
Merge 27a0bf101b into 8ed0bcf5ca
This commit is contained in:
commit
f48f57da19
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue