Fixed name of node at Tweaks

This commit is contained in:
Lucas Oliveira 2024-03-28 15:30:50 +02:00
commit de1e6bdc49
2 changed files with 20 additions and 4 deletions

View file

@ -182,9 +182,16 @@ export default function IOView({
<AccordionComponent
trigger={
<div className="file-component-badge-div">
<Badge variant="gray" size="md">
{node.data.node.display_name}
</Badge>
<ShadTooltip
content={input.id}
styleClasses="z-50"
>
<div>
<Badge variant="gray" size="md">
{node.data.node.display_name}
</Badge>
</div>
</ShadTooltip>
<div
className="-mb-1 pr-4"
onClick={(event) => {

View file

@ -36,6 +36,7 @@ import {
hasDuplicateKeys,
} from "../../utils/reactflowUtils";
import { classNames } from "../../utils/utils";
import ShadTooltip from "../ShadTooltipComponent";
import DictComponent from "../dictComponent";
import IconComponent from "../genericIconComponent";
import InputGlobalComponent from "../inputGlobalComponent";
@ -216,7 +217,15 @@ export default function CodeTabsComponent({
node["data"]["id"]
) && (
<AccordionComponent
trigger={node["data"]["id"]}
trigger={
<ShadTooltip
side="top"
styleClasses="z-50"
content={node["data"]["id"]}
>
<div>{node["data"]["node"]["display_name"]}</div>
</ShadTooltip>
}
open={openAccordion}
keyValue={node["data"]["id"]}
>