Refactor: Fix node minimizing animation

This commit is contained in:
igorrCarvalho 2023-09-18 19:43:06 -03:00
commit f41c2824e9
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -264,7 +264,7 @@
@apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4; @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4;
} }
.generic-node-div { .generic-node-div {
@apply relative flex flex-col justify-center rounded-lg bg-background; @apply relative flex flex-col justify-center bg-background;
} }
.generic-node-div-title { .generic-node-div-title {
@apply flex w-full items-center gap-8 border-b bg-muted p-4; @apply flex w-full items-center gap-8 border-b bg-muted p-4;