Skip to content

Commit b58e969

Browse files
MDA2AVclaude
andcommitted
Fix chart bar background in dark mode — use subtle dark track color
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5708f86 commit b58e969

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/static/probe/render.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ window.ProbeRender = (function () {
5757
html += '<div style="display:flex;align-items:center;gap:10px;">';
5858
html += '<div style="min-width:24px;text-align:right;font-size:13px;font-weight:600;color:#656d76;">' + rank + '</div>';
5959
html += '<div style="min-width:110px;font-size:13px;font-weight:600;white-space:nowrap;">' + sv.name + '</div>';
60-
html += '<div style="flex:1;height:22px;background:#f0f0f0;border-radius:3px;overflow:hidden;position:relative;">';
60+
var trackBg = document.documentElement.classList.contains('dark') ? '#2a2f38' : '#f0f0f0';
61+
html += '<div style="flex:1;height:22px;background:' + trackBg + ';border-radius:3px;overflow:hidden;position:relative;">';
6162
html += '<div style="height:100%;width:' + barPct + '%;background:' + bg + ';border-radius:3px;transition:width 0.3s;"></div>';
6263
html += '</div>';
6364
html += '<div style="min-width:72px;text-align:right;font-size:13px;font-weight:700;">' + s.passed + '/' + scored + '</div>';

0 commit comments

Comments
 (0)