From 19838a76aff7c14df6ab627c215f1d06f4b42519 Mon Sep 17 00:00:00 2001 From: Ivan Kolesnikov <81024464+prettyleaf@users.noreply.github.com> Date: Sun, 6 Sep 2026 16:48:53 +0700 Subject: [PATCH] feat: different icon for build info, refresh rate selection --- internal/status/page.html | 74 ++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 24 deletions(-) diff --git a/internal/status/page.html b/internal/status/page.html index 26967e4..05cc319 100644 --- a/internal/status/page.html +++ b/internal/status/page.html @@ -45,15 +45,21 @@ .pill:focus-visible{outline:2px solid var(--series);outline-offset:2px} .pill svg{width:15px;height:15px;flex:none;display:block} .pill .n{font-variant-numeric:tabular-nums} -.pill.round{padding:0 9px} /* A release waiting on GitHub is the one thing in this header worth a colour and a heartbeat; a current build stays plain. */ #build-btn.outdated{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 45%,transparent); animation:pulse 2.6s ease-in-out infinite} @keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}} -#refresh.busy svg{animation:spin .7s linear infinite} -@keyframes spin{to{transform:rotate(360deg)}} -@media (prefers-reduced-motion:reduce){#build-btn.outdated,#refresh.busy svg{animation:none}} +@media (prefers-reduced-motion:reduce){#build-btn.outdated{animation:none}} +/* The poll rate replaces the manual refresh: the page has no other cadence, + so the select is the whole control and carries the pill itself. */ +.pill.select{gap:6px;padding-right:9px} +.pill.select:focus-within{outline:2px solid var(--series);outline-offset:2px} +.pill select{appearance:none;-webkit-appearance:none;background:none;border:0;outline:none; + margin:0;padding:0;color:inherit;font:inherit;font-size:12px;line-height:1; + cursor:pointer;font-variant-numeric:tabular-nums;min-width:50px} +.pill select option{background:var(--surface);color:var(--ink)} +.pill .caret{width:9px;height:9px;opacity:.55} .pop{position:absolute;top:calc(100% + 8px);right:0;z-index:9;min-width:252px; max-width:min(320px,calc(100vw - 40px));background:var(--surface); border:1px solid var(--border);border-radius:10px;padding:14px 16px; @@ -128,11 +134,8 @@