Removed minimize transition to fix handle position

This commit is contained in:
Lucas Oliveira 2023-12-08 16:57:56 -03:00
commit f83a8568a0
2 changed files with 2 additions and 5 deletions

View file

@ -150,10 +150,7 @@ export default function GenericNode({
<div <div
className={classNames( className={classNames(
selected ? "border border-ring" : "border", selected ? "border border-ring" : "border",
" transition-transform ", showNode ? " w-96 rounded-lg" : " w-26 h-26 rounded-full",
showNode
? " w-96 scale-100 transform rounded-lg duration-500 ease-in-out "
: " transform-width w-26 h-26 scale-90 transform rounded-full duration-500 ",
"generic-node-div" "generic-node-div"
)} )}
> >

View file

@ -86,7 +86,7 @@ export default function NodeToolbarComponent({
break; break;
case "show": case "show":
takeSnapshot(); takeSnapshot();
setShowNode(data.showNode ? false : true); setShowNode(data.showNode ?? true ? false : true);
updateNodeInternals(data.id); updateNodeInternals(data.id);
break; break;
case "Download": case "Download":