enhance: better commit graph

This commit is contained in:
leo 2024-07-08 18:10:26 +08:00
parent 7ee3db500a
commit 8fa19ecd0c
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View file

@ -61,8 +61,13 @@ namespace SourceGit.Models
}
else if (x < LastX)
{
if (y > LastY + halfHeight)
Add(new Point(LastX, LastY + halfHeight));
var testY = LastY + halfHeight;
if (y > testY)
Add(new Point(LastX, testY));
if (!isEnd)
y += halfHeight;
Add(new Point(x, y));
}
else if (isEnd)