Merge branch 'nodesImprovements' into minimizeNode
This commit is contained in:
commit
a0c7712b70
3 changed files with 47 additions and 36 deletions
|
|
@ -118,10 +118,17 @@ export default function ParameterComponent({
|
||||||
nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"];
|
nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
{index === 0 && (
|
||||||
|
<span>
|
||||||
|
{left ? "Components to connect into:" : "Components to connect to:"}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
<span
|
<span
|
||||||
key={index}
|
key={index}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
index > 0 ? "mt-2 flex items-center" : "flex items-center"
|
index > 0 ? "mt-2 flex items-center" : "mt-3 flex items-center"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
@ -140,6 +147,7 @@ export default function ParameterComponent({
|
||||||
</div>
|
</div>
|
||||||
<span className="ps-2 text-xs text-foreground">
|
<span className="ps-2 text-xs text-foreground">
|
||||||
{nodeNames[item.family] ?? "Other"}
|
{nodeNames[item.family] ?? "Other"}
|
||||||
|
{" "}
|
||||||
<span className="text-xs">
|
<span className="text-xs">
|
||||||
{" "}
|
{" "}
|
||||||
{item.type === "" ? "" : " - "}
|
{item.type === "" ? "" : " - "}
|
||||||
|
|
@ -157,6 +165,7 @@ export default function ParameterComponent({
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,10 @@ export default function GenericNode({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="generic-node-desc">
|
<div className={"generic-node-desc " + (data.node?.description !== "" ? "py-5" : "pb-5")}>
|
||||||
|
{data.node?.description !== "" && (
|
||||||
<div className="generic-node-desc-text">{data.node?.description}</div>
|
<div className="generic-node-desc-text">{data.node?.description}</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<>
|
<>
|
||||||
{Object.keys(data.node!.template)
|
{Object.keys(data.node!.template)
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@
|
||||||
@apply hover:text-accent-foreground hover:transition-all;
|
@apply hover:text-accent-foreground hover:transition-all;
|
||||||
}
|
}
|
||||||
.generic-node-desc {
|
.generic-node-desc {
|
||||||
@apply h-full w-full py-5 text-foreground;
|
@apply h-full w-full text-foreground;
|
||||||
}
|
}
|
||||||
.generic-node-desc-text {
|
.generic-node-desc-text {
|
||||||
@apply w-full px-5 pb-3 text-sm text-muted-foreground;
|
@apply w-full px-5 pb-3 text-sm text-muted-foreground;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue