diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeName/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeName/index.tsx index b27b50496..15bafebf7 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeName/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeName/index.tsx @@ -76,11 +76,10 @@ export default function NodeName({ event.preventDefault(); }} data-testid={"title-" + display_name} - className={ - showNode - ? "nodoubleclick w-full cursor-text truncate font-medium text-primary" - : "cursor-default" - } + className={cn( + "nodoubleclick w-full truncate font-medium text-primary", + showNode ? "cursor-text" : "cursor-default", + )} >