diff --git a/app/main.py b/app/main.py index bea3866..6e50538 100644 --- a/app/main.py +++ b/app/main.py @@ -277,9 +277,7 @@ PAGE_HTML = """ .trend-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 12px; margin-top: 12px; } .trend-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .trend-title { font-weight: 700; font-size: 14px; color: var(--ink); } - .trend-sub { color: var(--muted); font-size: 12px; } .trend-body svg { display: block; width: 100%; height: auto; overflow: visible; } - .trend-note { color: var(--muted); font-size: 12px; margin: 6px 0 0; } .trend-empty { color: var(--muted); font-size: 13px; margin: 28px 0; text-align: center; } @media (max-width: 600px) { .trend-controls { gap: 10px; } .trend-card { padding: 12px 10px; } } .num { font-variant-numeric: tabular-nums; } @@ -384,10 +382,8 @@ PAGE_HTML = """
Loading
Not enough history yet.
"; - $("trend-sub").textContent = ""; return; } - const gaps = vals.length - have.length; const maxV = Math.max.apply(null, have); // Axis top = one round step times four ticks: labels land on round numbers // and the peak still clears the frame. @@ -619,7 +609,6 @@ function renderTrends() { } parts.push(""); host.innerHTML = parts.join(""); - $("trend-sub").textContent = rows.length + " days" + (gaps > 0 ? " - " + gaps + " not measured" : ""); } // ---- shared state ----