Skip to content

Commit a84ff57

Browse files
committed
change the padding based on the canvas width
1 parent f684610 commit a84ff57

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/components/Input.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ export default function Input({ value, onValueChange, handelSubmit, graph, icon,
163163
onMouseEnter={() => setSelectedOption(index)}
164164
onMouseLeave={() => setSelectedOption(-1)}
165165
onClick={() => {
166-
debugger
167166
onValueChange({ name: option.properties.name, id: option.id })
168167
handelSubmit && handelSubmit(option)
169168
setOpen(false)

app/components/code-graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export function CodeGraph({
336336
}
337337

338338
chartNode.select()
339-
const layout = { ...LAYOUT, padding: 250 }
339+
const layout = { ...LAYOUT, padding: chart.width() / 5 }
340340
chartNode.layout(layout).run()
341341
setSearchNode(n)
342342
}

0 commit comments

Comments
 (0)