mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Put label right down the vert line
This commit is contained in:
@@ -316,7 +316,11 @@ export const draw = function (text, id, version, diagObj) {
|
||||
// .attr('height', theBarHeight)
|
||||
.attr('height', function (d) {
|
||||
if (d.vert) {
|
||||
return 1000.5 * theBarHeight;
|
||||
return (
|
||||
conf.gridLineStartPadding +
|
||||
taskArray.length * (conf.barHeight + conf.barGap) +
|
||||
conf.barHeight * 2
|
||||
);
|
||||
}
|
||||
return theBarHeight;
|
||||
})
|
||||
@@ -426,7 +430,7 @@ export const draw = function (text, id, version, diagObj) {
|
||||
.attr('y', function (d, i) {
|
||||
// Ignore the incoming i value and use our order instead
|
||||
if (d.vert) {
|
||||
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 50;
|
||||
return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 60;
|
||||
}
|
||||
i = d.order;
|
||||
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
|
||||
|
@@ -237,6 +237,10 @@ const getStyles = (options) =>
|
||||
fill: ${options.taskTextDarkColor} !important;
|
||||
}
|
||||
|
||||
.vertText {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.activeCritText0,
|
||||
.activeCritText1,
|
||||
.activeCritText2,
|
||||
|
Reference in New Issue
Block a user