From efc0a42f8b9106d600e4f9d4ca059d1dea9558cd Mon Sep 17 00:00:00 2001 From: claude Date: Sun, 11 Oct 2026 20:35:16 +0200 Subject: [PATCH] Tune page: keep the SPSA parameter list to a bounded, scrollable height The list used to grow with the number of parameters and pushed the results table far down the page. It now scrolls inside the panel, with the filter and sort bar staying in view, and jumps back to the top when the order or filter changes. --- OpenBench/static/spsa_chart.css | 15 +++++++++++++++ OpenBench/static/spsa_panel.js | 2 ++ 2 files changed, 17 insertions(+) diff --git a/OpenBench/static/spsa_chart.css b/OpenBench/static/spsa_chart.css index 84ae273..06332f6 100644 --- a/OpenBench/static/spsa_chart.css +++ b/OpenBench/static/spsa_chart.css @@ -43,6 +43,21 @@ #content .tune-page > .tune-side { grid-column: 1; grid-row: 2; } } +/* ---------- The parameter list scrolls inside the panel ---------- */ + +/* With dozens of parameters the list ran the page down to the results table. + It now keeps to a bounded height; the filter and sort bar above it stays in + view. The small negative margin keeps focus rings from being clipped. */ +#content .spsa-panel .spsa-rows { + max-height: min(60vh, 540px); + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-width: thin; + margin-left: -4px; + padding-left: 4px; + padding-right: 8px; +} + /* ---------- Collapsible sections ---------- */ #content details.config-fold { diff --git a/OpenBench/static/spsa_panel.js b/OpenBench/static/spsa_panel.js index db5d94a..219a38a 100644 --- a/OpenBench/static/spsa_panel.js +++ b/OpenBench/static/spsa_panel.js @@ -34,6 +34,8 @@ list.appendChild(row); }); + list.scrollTop = 0; + if (empty) empty.hidden = shown !== 0; }