From fa628a04fd2c6d6a09ee61ca567da94e61b5e6b7 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Wed, 5 Jul 2023 15:50:57 -0300 Subject: [PATCH] feat: Add generic node tailwind constants classes --- .../src/CustomNodes/GenericNode/index.tsx | 44 +++++++-------- src/frontend/src/index.css | 53 +++++++++++++++++++ 2 files changed, 75 insertions(+), 22 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 32cee565d..f177ab1c0 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -82,30 +82,30 @@ export default function GenericNode({
-
-
+
+
-
+
-
+
{data.node.display_name}
-
+
-
+
+
{validationStatus.params || "" .split("\n") @@ -130,29 +130,29 @@ export default function GenericNode({ ) } > -
+
@@ -161,8 +161,8 @@ export default function GenericNode({
-
-
+
+
{data.node.description}
@@ -221,7 +221,7 @@ export default function GenericNode({
{" "} diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index a9dfc0c1a..84398be78 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -298,4 +298,57 @@ The cursor: default; property value restores the browser's default cursor style .community-pages-flows-panel { @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4 } + .generic-node-div { + @apply relative flex w-96 flex-col justify-center rounded-lg bg-background + } + .generic-node-div-title { + @apply flex w-full items-center justify-between gap-8 rounded-t-lg border-b bg-muted p-4 + } + .generic-node-title-arrangement { + @apply flex-max-width items-center truncate + } + .generic-node-icon { + @apply h-10 w-10 rounded p-1 + } + .generic-node-tooltip-div { + @apply ml-2 truncate + } + .generic-node-validation-div { + @apply max-h-96 overflow-auto + } + + .generic-node-status-position { + @apply relative top-[3px] h-5 w-5 + } + + .generic-node-status-animation { + @apply hidden h-4 w-4 animate-spin rounded-full bg-ring opacity-0 + } + .generic-node-status { + @apply h-4 w-4 rounded-full opacity-100 + } + .green-status { + @apply generic-node-status bg-status-green + } + .red-status { + @apply generic-node-status bg-status-red + } + .yellow-status { + @apply generic-node-status bg-status-yellow + } + .status-build-animation { + @apply hidden h-4 w-4 animate-spin rounded-full bg-ring opacity-0 + } + .status-div { + @apply absolute w-4 duration-200 ease-in-out + } + .status-div:hover { + @apply hover:text-accent-foreground hover:transition-all + } + .generic-node-desc { + @apply h-full w-full py-5 text-foreground + } + .generic-node-desc-text { + @apply w-full px-5 pb-3 text-sm text-muted-foreground + } } \ No newline at end of file