refactor: remove inline branch/tag labels, keep only top-right legend
Deploy PR-Helper / deploy (push) Successful in 29s

This commit is contained in:
2026-06-21 14:45:50 +08:00
parent 9b26bcb1b8
commit 82666cff26
-3
View File
@@ -126,9 +126,6 @@ const GitGraph = {
// Draw commit nodes // Draw commit nodes
this._drawNodes(g, nodeMap, lanes); this._drawNodes(g, nodeMap, lanes);
// Draw branch labels on the right side
this._drawBranchLabels(g, nodeMap, this._laneBranchMap, laneWidth, maxLane);
// Draw legend in top-right corner // Draw legend in top-right corner
const svgWidth = Math.max(width, graphWidth); const svgWidth = Math.max(width, graphWidth);
this._drawLegend(svg, this._laneBranchMap, svgWidth); this._drawLegend(svg, this._laneBranchMap, svgWidth);