Skip to content

Commit 11ed01e

Browse files
committed
Pipeline Info - Timeline - Inconsistent verical alignment (#6767)
Sourced the fix from the original maintainer jiahuang/d3-timeline@8439407 The nextflow repo where this code was originally sourced from is long abandoned and archived https://github.com/nextflow-io/d3-timeline Signed-off-by: Peter Kneale <peterkneale@gmail.com>
1 parent f8781ab commit 11ed01e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

modules/nextflow/src/main/resources/nextflow/trace/assets/d3-timeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154

155155
var appendLabel = function (gParent, yAxisMapping, index, hasLabel, datum) {
156156
var fullItemHeight = itemHeight + itemMargin;
157-
var rowsDown = fullItemHeight + fullItemHeight * (yAxisMapping[index] || 1);
157+
var rowsDown = margin.top + (fullItemHeight/2) + fullItemHeight * (yAxisMapping[index] || 1);
158158

159159
gParent.append("text")
160160
.attr("class", "timeline-label")

modules/nextflow/src/main/resources/nextflow/trace/assets/d3-timeline.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)