fix(parameterComponent): add isMinimized prop to ParameterComponent to control the display of a component when minimized
feat(GenericNode): add isMinimized state to control the display of components when the node is minimized fix(nodeToolbarComponent): set isMinimized state based on showNode prop to control the display of components when the node is minimized
This commit is contained in:
parent
35a0a344dd
commit
a6f25e97b8
4 changed files with 20 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ export default function ParameterComponent({
|
|||
proxy,
|
||||
showNode,
|
||||
index = "",
|
||||
isMinimized,
|
||||
}: ParameterComponentType): JSX.Element {
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const refHtml = useRef<HTMLDivElement & ReactNode>(null);
|
||||
|
|
@ -287,7 +288,8 @@ export default function ParameterComponent({
|
|||
}
|
||||
className={classNames(
|
||||
left ? "my-12 -ml-0.5 " : " my-12 -mr-0.5 ",
|
||||
"h-3 w-3 rounded-full border-2 bg-background"
|
||||
"h-3 w-3 rounded-full border-2 bg-background",
|
||||
isMinimized ? "mt-0" : ""
|
||||
)}
|
||||
style={{
|
||||
borderColor: color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue