diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 94cc939ff..3140c3b62 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -118,45 +118,54 @@ export default function ParameterComponent({ nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"]; return ( - 0 ? "mt-2 flex items-center" : "flex items-center" - )} - > -
- + {index === 0 && ( + + {left ? "Components to connect into:" : "Components to connect to:"} + + ) + } + 0 ? "mt-2 flex items-center" : "mt-3 flex items-center" + )} + > +
-
- - {nodeNames[item.family] ?? "Other"} - + > + +
+ + {nodeNames[item.family] ?? "Other"} {" "} - {item.type === "" ? "" : " - "} - {item.type.split(", ").length > 2 - ? item.type.split(", ").map((el, index) => ( - - - {index === item.type.split(", ").length - 1 - ? el - : (el += `, `)} - - - )) - : item.type} + + {" "} + {item.type === "" ? "" : " - "} + {item.type.split(", ").length > 2 + ? item.type.split(", ").map((el, index) => ( + + + {index === item.type.split(", ").length - 1 + ? el + : (el += `, `)} + + + )) + : item.type} +
- + ); }); } else { diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 8d8d4aefd..d94041750 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -168,8 +168,10 @@ export default function GenericNode({ -
-
{data.node?.description}
+
+ {data.node?.description !== "" && ( +
{data.node?.description}
+ )} <> {Object.keys(data.node!.template) diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index d64d4227c..ff899663b 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -311,7 +311,7 @@ @apply hover:text-accent-foreground hover:transition-all; } .generic-node-desc { - @apply h-full w-full py-5 text-foreground; + @apply h-full w-full text-foreground; } .generic-node-desc-text { @apply w-full px-5 pb-3 text-sm text-muted-foreground;