diff --git a/web_src/js/vendor/gitgraph.js b/web_src/js/vendor/gitgraph.js index 0a780c1eb54f..0cf5d0f75b93 100644 --- a/web_src/js/vendor/gitgraph.js +++ b/web_src/js/vendor/gitgraph.js @@ -372,6 +372,10 @@ export default function gitGraph(canvas, rawGraphList, config) { inlineIntersect = false; } + if (colomn === '|' && currentRow[colomnIndex - 1] && currentRow[colomnIndex - 1] === '\\') { + flows.splice(colomnIndex, 0, genNewFlow()); + } + color = flows[colomnIndex].color; switch (colomn) { @@ -387,6 +391,9 @@ export default function gitGraph(canvas, rawGraphList, config) { break; case '|': + if (prevColomn && prevColomn === '\\') { + x += config.unitSize; + } drawLineUp(x, y, color); break;