File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ export const Tree = ({ data, filesChanged = [] }: Props) => {
123
123
const hasChildWithNoChildren = d . children . filter ( ( d ) =>
124
124
! d . children ?. length
125
125
) . length > 1 ;
126
- if ( hasChildWithNoChildren ) return 9 ;
127
- return 15 ;
126
+ if ( hasChildWithNoChildren ) return 4 ;
127
+ return 9 ;
128
128
// const hasChildren = !!d.children?.find((d) => d?.children?.length);
129
129
// return hasChildren ? 60 : 8;
130
130
// return [60, 20, 12][d.depth] || 5;
@@ -583,7 +583,7 @@ const reflowSiblings = (
583
583
originalY : d . y ,
584
584
} ;
585
585
} ) ] ;
586
- const paddingScale = scaleLinear ( ) . domain ( [ 10 , 1 ] ) . range ( [ 3 , 30 ] ) . clamp ( true ) ;
586
+ const paddingScale = scaleLinear ( ) . domain ( [ 10 , 1 ] ) . range ( [ 3 , 10 ] ) . clamp ( true ) ;
587
587
let simulation = forceSimulation ( items )
588
588
. force (
589
589
"centerX" ,
You can’t perform that action at this time.
0 commit comments