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; }