Skip to content

Commit 9987792

Browse files
authored
Merge pull request #293 from FalkorDB/fix-search-element
Fix #194 change the padding based on the canvas width
2 parents 6cd1130 + 00a2a72 commit 9987792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/code-graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export function CodeGraph({
382382
chartNode.select()
383383
chartNode.style({ display: "element" })
384384
setIsSelectedObj(String(n.id))
385-
const layout = { ...LAYOUT, padding: 250 }
385+
const layout = { ...LAYOUT, padding: chart.width() / 5 }
386386
chartNode.layout(layout).run()
387387
setSearchNode(n)
388388
}

0 commit comments

Comments
 (0)