Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix shrink parent node width

AykutSarac851aa4a91265
diff --git a/src/components/CustomNode/TextNode.tsx b/src/components/CustomNode/TextNode.tsx
index fb7e8a87..3ab44bca 100644
--- a/src/components/CustomNode/TextNode.tsx
+++ b/src/components/CustomNode/TextNode.tsx
@@ -102,7 +102,7 @@ const TextNode: React.FC<TextNodeProps> = ({
};
function propsAreEqual(prev: TextNodeProps, next: TextNodeProps) {
- return prev.value === next.value;
+ return prev.value === next.value && prev.width === next.width;
}
export default React.memo(TextNode, propsAreEqual);