mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 15:25:43 +03:00
Fix gitgraph branch continues after merge (#12044)
* Fix gitgraph branch continues after merge After fixing the initial problem in #11981 another problem has come to light... Fix #11981 (part 2) Signed-off-by: Andrew Thornton <art27@cantab.net> * Update web_src/js/vendor/gitgraph.js * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
ebc35f2b2e
commit
0b1bb96441
1 changed files with 7 additions and 0 deletions
7
web_src/js/vendor/gitgraph.js
vendored
7
web_src/js/vendor/gitgraph.js
vendored
|
@ -372,6 +372,10 @@ export default function gitGraph(canvas, rawGraphList, config) {
|
||||||
inlineIntersect = false;
|
inlineIntersect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (colomn === '|' && currentRow[colomnIndex - 1] && currentRow[colomnIndex - 1] === '\\') {
|
||||||
|
flows.splice(colomnIndex, 0, genNewFlow());
|
||||||
|
}
|
||||||
|
|
||||||
color = flows[colomnIndex].color;
|
color = flows[colomnIndex].color;
|
||||||
|
|
||||||
switch (colomn) {
|
switch (colomn) {
|
||||||
|
@ -387,6 +391,9 @@ export default function gitGraph(canvas, rawGraphList, config) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '|':
|
case '|':
|
||||||
|
if (prevColomn && prevColomn === '\\') {
|
||||||
|
x += config.unitSize;
|
||||||
|
}
|
||||||
drawLineUp(x, y, color);
|
drawLineUp(x, y, color);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue