diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..20c0cc9 Binary files /dev/null and b/screenshot.png differ diff --git a/static/dashboard.js b/static/dashboard.js index c37c2b8..6e0a598 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -45,17 +45,16 @@ function initDashboard() { background: ${bg}; border: 1px solid ${border}; border-radius: 3px; color: ${color}; cursor: pointer; margin-left: ${i > 0 ? '1px' : '0'};">${cfg.label}`; }); - // Fail indicator (not clickable, just shows error state) or empty spacer for alignment + // Fail indicator (not clickable) or hidden spacer for alignment + const cfg = statusConfig.fail; + const failBtnStyle = `padding: 2px 6px; font-size: 10px; font-family: monospace; + background: ${cfg.bg}; border: 1px solid ${cfg.border}; border-radius: 3px; + color: ${cfg.color}; cursor: default; margin-left: 1px; min-width: 26px; box-sizing: border-box;`; if (showFail) { - const cfg = statusConfig.fail; - html += `${cfg.label}`; + html += ``; } else { - // Empty spacer to keep consistent width (invisible but takes space) - html += `fail`; + // Hidden spacer - same style but invisible + html += ``; } html += ''; return html; diff --git a/templates.go b/templates.go index ab3ccde..daf628c 100644 --- a/templates.go +++ b/templates.go @@ -533,7 +533,7 @@ const dashboardHTML = `
-