Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor ToolCard styling change #710

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions ui/admin/app/components/tools/toolGrid/ToolCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ export function ToolCard({ tool, onDelete }: ToolCardProps) {
})}
>
<CardHeader className="pb-2">
<TypographyH4 className="truncate flex items-center">
<ToolIcon
className="w-5 h-5 mr-2"
name={tool.name}
icon={tool.metadata?.icon}
/>
{tool.name}
<TypographyH4 className="truncate flex flex-wrap items-center gap-x-2">
<div className="flex flex-nowrap gap-x-2">
<ToolIcon
className="w-5 min-w-5 h-5"
name={tool.name}
icon={tool.metadata?.icon}
/>
{tool.name}
</div>
{tool.error && (
<Tooltip>
<TooltipTrigger>
<Badge className="ml-2 bg-error mb-1 pointer-events-none">
<Badge className="bg-error mb-1 pointer-events-none">
Failed
</Badge>
</TooltipTrigger>
Expand All @@ -59,9 +61,7 @@ export function ToolCard({ tool, onDelete }: ToolCardProps) {
</Tooltip>
)}
{tool.metadata?.bundle && (
<Badge className="ml-2 pointer-events-none">
Bundle
</Badge>
<Badge className="pointer-events-none">Bundle</Badge>
)}
</TypographyH4>
</CardHeader>
Expand Down