Skip to content

Commit c135191

Browse files
stoivoidank
authored andcommitted
web/ui: two links use the same line when pointing to the same help
1 parent aaf967a commit c135191

File tree

1 file changed

+6
-2
lines changed
  • explainshell/web/static/js

1 file changed

+6
-2
lines changed

explainshell/web/static/js/es.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ function drawgrouplines(commandselector, options) {
614614
p = leftmostpath.points[0];
615615
pp = leftmostpath.points[1];
616616

617-
path.addpoint(p.x, pp.y);
617+
// zero or minus to alight with the same flag
618+
startyDifferace = leftmost.starty - link.starty
619+
path.addpoint(p.x, pp.y + startyDifferace);
618620
}
619621
}
620622
else {
@@ -639,7 +641,9 @@ function drawgrouplines(commandselector, options) {
639641
p = rightmostpath.points[0];
640642
pp = rightmostpath.points[1];
641643

642-
path.addpoint(p.x, pp.y);
644+
// zero or minus to alight with the same flag
645+
startyDifferace = leftmost.starty - link.starty
646+
path.addpoint(p.x, pp.y + startyDifferace);
643647
}
644648
}
645649

0 commit comments

Comments
 (0)