feat: add node minimizing animation (refactoring it later)

This commit is contained in:
igorrCarvalho 2023-09-18 14:25:13 -03:00
commit d44365578d
3 changed files with 10 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class AuthSettings(BaseSettings):
# If AUTO_LOGIN = True
# > The application does not request login and logs in automatically as a super user.
AUTO_LOGIN: bool = False
AUTO_LOGIN: bool = True
FIRST_SUPERUSER: str = "langflow"
FIRST_SUPERUSER_PASSWORD: str = "langflow"

View file

@ -6,6 +6,13 @@
text-align: center;
}
.react-flow__node {
width: auto;
height: auto;
border-radius: auto;
min-width: inherit;
}
.App-logo {
height: 40vmin;
pointer-events: none;

View file

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