diff --git a/.github/bench-dashboard/index.html b/.github/bench-dashboard/index.html index 5490d71ac..88a74a9c9 100644 --- a/.github/bench-dashboard/index.html +++ b/.github/bench-dashboard/index.html @@ -78,10 +78,80 @@ margin-top: 14px; min-height: 460px; } - #chart { + #chart, #chart-profile { width: 100% !important; height: 440px !important; } + /* HTML legend replaces Chart.js built-in legend: a full-width row + is the click target (fixing the issue where only the colour swatch + registered clicks and wrapped labels drifted onto the next line), + and the container scrolls when series count exceeds the visible + height (fixing silent series hiding by Chart.js). */ + .html-legend { + margin-top: 10px; + max-height: 180px; + overflow-y: auto; + border-top: 1px solid #e4ece8; + padding-top: 8px; + } + .html-legend-item { + display: flex; + align-items: center; + gap: 8px; + padding: 4px 8px; + border-radius: 6px; + cursor: pointer; + font-size: 0.85rem; + line-height: 1.3; + user-select: none; + /* Render