mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-15 19:10:47 +02:00
AutomateFixes (#4281)
can edit automations drop down styles drop down bug fixes --------- Co-authored-by: Connor Yoh <[email protected]>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user