Refactor: adjust icon size when node are minimized
This commit is contained in:
parent
b1f874ca03
commit
21009761f0
2 changed files with 2 additions and 2 deletions
|
|
@ -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={{
|
||||
|
|
|
|||
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue