✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix node highlight
AykutSarac452bb87c2ef7
diff --git a/src/components/CustomNode/styles.tsx b/src/components/CustomNode/styles.tsxindex 1c8cef76..fe70f7bd 100644--- a/src/components/CustomNode/styles.tsx+++ b/src/components/CustomNode/styles.tsx@@ -70,8 +70,7 @@ export const StyledKey = styled.span<{font-size: ${({ parent }) => parent && "14px"};overflow: hidden;text-overflow: ellipsis;- padding: ${({ parent }) => parent && "7px"};- height: 18px;+ padding: 7px;`;export const StyledRow = styled.span.attrs<{diff --git a/src/utils/search.ts b/src/utils/search.tsindex 445fd6bc..f7057ff3 100644--- a/src/utils/search.ts+++ b/src/utils/search.ts@@ -16,8 +16,6 @@ export const highlightMatchedNodes = (selectedNode: number) => {nodes?.forEach(node => {- console.log(node.parentElement?.closest("foreignObject"));-node.parentElement?.closest("foreignObject")?.classList.add("searched");});