AutomateFixes (#4281)

can edit automations
drop down styles
drop down bug fixes

---------

Co-authored-by: Connor Yoh <[email protected]>
This commit is contained in:
ConnorYoh
2025-08-26 09:44:30 +01:00
committed by GitHub
co-authored by Connor Yoh
parent 42d7664e25
commit fe9d2367d5
10 changed files with 264 additions and 174 deletions
@@ -9,9 +9,10 @@ interface ToolButtonProps {
tool: ToolRegistryEntry;
isSelected: boolean;
onSelect: (id: string) => void;
rounded?: boolean;
}
const ToolButton: React.FC<ToolButtonProps> = ({ id, tool, isSelected, onSelect }) => {
const ToolButton: React.FC<ToolButtonProps> = ({ id, tool, isSelected, onSelect, rounded = false }) => {
const handleClick = (id: string) => {
if (tool.link) {
// Open external link in new tab
@@ -33,7 +34,17 @@ const ToolButton: React.FC<ToolButtonProps> = ({ id, tool, isSelected, onSelect
fullWidth
justify="flex-start"
className="tool-button"
styles={{ root: { borderRadius: 0, color: "var(--tools-text-and-icon-color)" } }}
styles={{
root: {
borderRadius: rounded ? 'var(--mantine-radius-lg)' : 0,
color: "var(--tools-text-and-icon-color)",
...(rounded && {
'&:hover': {
borderRadius: 'var(--mantine-radius-lg)',
}
})
}
}}
>
<FitText
text={tool.name}