Refactor: Add header to node tooltips

This commit is contained in:
igorrCarvalho 2023-09-11 15:50:18 -03:00 • committed by anovazzi1
commit cd28ae2c59

View file

@ -118,10 +118,17 @@ export default function ParameterComponent({
nodeIconsLucide[item.family] ?? nodeIconsLucide["unknown"];
return (
<>
{index === 0 && (
<span>
{left ? "Components to connect into:" : "Components to connect to:"}
</span>
)
}
<span
key={index}
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
@ -140,6 +147,7 @@ export default function ParameterComponent({
</div>
<span className="ps-2 text-xs text-foreground">
{nodeNames[item.family] ?? "Other"}
{" "}
<span className="text-xs">
{" "}
{item.type === "" ? "" : " - "}
@ -157,6 +165,7 @@ export default function ParameterComponent({
</span>
</span>
</span>
</>
);
});
} else {