Skip to content

Commit a736f99

Browse files
author
Amelia Wattenbeger
committed
decrease padding
1 parent e27da73 commit a736f99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Tree.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ export const Tree = ({ data, filesChanged = [] }: Props) => {
123123
const hasChildWithNoChildren = d.children.filter((d) =>
124124
!d.children?.length
125125
).length > 1;
126-
if (hasChildWithNoChildren) return 9;
127-
return 15;
126+
if (hasChildWithNoChildren) return 4;
127+
return 9;
128128
// const hasChildren = !!d.children?.find((d) => d?.children?.length);
129129
// return hasChildren ? 60 : 8;
130130
// return [60, 20, 12][d.depth] || 5;
@@ -583,7 +583,7 @@ const reflowSiblings = (
583583
originalY: d.y,
584584
};
585585
})];
586-
const paddingScale = scaleLinear().domain([10, 1]).range([3, 30]).clamp(true);
586+
const paddingScale = scaleLinear().domain([10, 1]).range([3, 10]).clamp(true);
587587
let simulation = forceSimulation(items)
588588
.force(
589589
"centerX",

0 commit comments

Comments
 (0)