Refactor: Add header to node tooltips
This commit is contained in:
parent
c03b11ab70
commit
cd28ae2c59
1 changed files with 42 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue