Compare commits

...

2 commits

Author SHA1 Message Date
nadrad fa87f13ada fixed line length for aligned parents with multiple children 2023-05-12 05:03:52 +02:00
nadrad 4a8a065b10 fixed highlighting for aligned no-siblings 2023-05-12 05:00:34 +02:00

4
h-m-m
View file

@ -833,7 +833,7 @@ function draw_connections(&$mm, $id)
.
(
$mm['align_levels']
? str_repeat('─', $child['x'] - $node['x'] - $node['w'] + 1)
? str_repeat('─', $child['x'] - $node['x'] - $node['w'] - 1)
: $mm['conn_single']
)
;
@ -916,7 +916,7 @@ function draw_connections(&$mm, $id)
.
(
$mm['align_levels']
? str_repeat('─', $mm['nodes'][$top_child]['x'] - $node['x'] - $node['w'] - 2 )
? str_repeat('─', $mm['nodes'][$top_child]['x'] - $node['x'] - $node['w'] - 3 )
: $mm['conn_left']
)
;