Refactor: adjust icon size when node are minimized

This commit is contained in:
igorrCarvalho 2023-09-13 18:23:52 -03:00
commit 21009761f0
2 changed files with 2 additions and 2 deletions

View file

@ -206,7 +206,7 @@ export default function ParameterComponent({
isValidConnection(connection, reactFlowInstance!)
}
className={classNames(
left ? "-ml-0.5 my-12 " : " -mr-0.4 my-12 ",
left ? "-ml-0.5 my-12 " : " -mr-0.5 my-12 ",
"h-3 w-3 rounded-full border-2 bg-background"
)}
style={{

View file

@ -129,7 +129,7 @@ export default function GenericNode({
<div className={"generic-node-title-arrangement rounded-full" + (!showNode && "justify-center")}>
<IconComponent
name={name}
className={"generic-node-icon " + (!showNode && "absolute left-7")}
className={"generic-node-icon " + (!showNode && "absolute inset-x-6 h-12 w-12")}
iconColor={`${nodeColors[types[data.type]]}`}
/>
{showNode && (