diff --git a/frontend/src/components/tools/automate/AutomationEntry.tsx b/frontend/src/components/tools/automate/AutomationEntry.tsx index 23db33ea6..1a0d2b5bb 100644 --- a/frontend/src/components/tools/automate/AutomationEntry.tsx +++ b/frontend/src/components/tools/automate/AutomationEntry.tsx @@ -113,11 +113,11 @@ export default function AutomationEntry({ if (title) { // Custom automation with title return ( - + {BadgeIcon && ( } - color={keepIconColor ? 'var(--mantine-primary-color-filled)' : 'var(--mantine-color-text)'} + {...(keepIconColor && { color: 'var(--mantine-primary-color-filled)' })} /> )} @@ -128,11 +128,11 @@ export default function AutomationEntry({ } else { // Suggested automation showing tool chain return ( - + {BadgeIcon && ( } - color={keepIconColor ? 'var(--mantine-primary-color-filled)' : 'var(--mantine-color-text)'} + {...(keepIconColor && { color: 'var(--mantine-primary-color-filled)' })} /> )} diff --git a/frontend/src/components/tools/toolPicker/ToolButton.tsx b/frontend/src/components/tools/toolPicker/ToolButton.tsx index 40cee33a7..467ce6738 100644 --- a/frontend/src/components/tools/toolPicker/ToolButton.tsx +++ b/frontend/src/components/tools/toolPicker/ToolButton.tsx @@ -2,6 +2,7 @@ import React from "react"; import { Button } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { Tooltip } from "../../shared/Tooltip"; +import { ToolIcon } from "../../shared/ToolIcon"; import { ToolRegistryEntry } from "../../../data/toolsTaxonomy"; import { useToolNavigation } from "../../../hooks/useToolNavigation"; import { handleUnlessSpecialClick } from "../../../utils/clickHandlers"; @@ -57,7 +58,10 @@ const ToolButton: React.FC = ({ id, tool, isSelected, onSelect, const buttonContent = ( <> -
{tool.icon}
+
= ({ id, tool, isSelected, onSelect, style={{ display: 'inline-block', maxWidth: '100%', opacity: isUnavailable ? 0.25 : 1 }} /> {matchedSynonym && ( -