diff --git a/OpenBench/static/spsa_chart.css b/OpenBench/static/spsa_chart.css index 84ae273..215e50c 100644 --- a/OpenBench/static/spsa_chart.css +++ b/OpenBench/static/spsa_chart.css @@ -1,46 +1,95 @@ /* Tune page: layout, collapsible sections, and the parameter history chart. */ -/* ---------- Layout: a main column, and a side column ---------- */ +/* ---------- Layout: one column, the panel first, folds below ---------- */ #content .workload-container.tune-page { + display: flex; + flex-direction: column; + gap: 12px; +} + +#content .tune-page > .card { margin: 0; } + +/* Source order keeps the cards together; this puts the story in the right order */ +#content .tune-page > #spsa-panel { order: 1; } +#content .tune-page > #config { order: 2; } +#content .tune-page > #actions { order: 3; } +#content .tune-page > #parameters { order: 4; } +#content .tune-page > #results { order: 5; } + +/* ---------- Chart on the left, parameter list on the right ---------- */ + +.spsa-split { display: grid; - grid-template-columns: minmax(0, 1fr) 320px; - gap: 20px; - align-items: start; + grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); + gap: 0 28px; + padding-top: 16px; + border-top: 1px solid var(--spsa-line); } -#content .tune-page > .tune-main { - grid-column: 1; - grid-row: 1; +.spsa-split-chart { min-width: 0; } + +/* The list takes the height of the chart and scrolls inside it */ +.spsa-split-list { + position: relative; + min-width: 0; + min-height: 380px; +} + +.spsa-list-inner { + position: absolute; + inset: 0; display: flex; flex-direction: column; - gap: 20px; - min-width: 0; + min-height: 0; } -#content .tune-page > .tune-side { - grid-column: 2; - grid-row: 1; - display: flex; - flex-direction: column; - gap: 16px; - min-width: 0; +.spsa-list-inner .spsa-tools { flex: none; padding: 0 0 10px; border-top: 0; } +.spsa-list-inner .spsa-key { flex: none; } + +.spsa-list-inner .spsa-rows { + flex: 1 1 auto; + min-height: 0; + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-width: thin; + padding-right: 6px; } -#content .tune-main > .card, -#content .tune-side > .card { - margin: 0; +.spsa-list-inner .spsa-empty { flex: none; } + +/* Dense rows: one line per parameter */ +.spsa-split-list .spsa-row { + grid-template-columns: minmax(7ch, 15ch) minmax(56px, 1fr) 8.5ch 8ch; + gap: 0 12px; + padding: 8px 0; } -/* Source order is side first; this puts the story in the right order */ -#content .tune-main > #spsa-panel { order: 1; } -#content .tune-main > #results { order: 2; } -#content .tune-main > #parameters { order: 3; } +.spsa-split-list .spsa-row:hover { background: rgba(255, 255, 255, .03); } +.spsa-split-list .spsa-scale { display: none; } +.spsa-split-list .spsa-track { margin: 0 6px; } +.spsa-split-list .spsa-value { font-size: 14px; } +.spsa-split-list .spsa-delta { font-size: 12px; } @media (max-width: 1000px) { - #content .workload-container.tune-page { grid-template-columns: minmax(0, 1fr); } - #content .tune-page > .tune-main { grid-column: 1; grid-row: 1; } - #content .tune-page > .tune-side { grid-column: 1; grid-row: 2; } + .spsa-split { grid-template-columns: minmax(0, 1fr); } + .spsa-split-chart { margin-bottom: 18px; } + .spsa-split-list { min-height: 0; } + .spsa-list-inner { position: static; } + .spsa-list-inner .spsa-rows { flex: none; max-height: 420px; } +} + +@media (max-width: 560px) { + .spsa-split-list .spsa-row { + grid-template-columns: 1fr auto auto; + gap: 6px 12px; + padding: 10px 0; + } + .spsa-split-list .spsa-name { grid-column: 1; } + .spsa-split-list .spsa-value { grid-column: 2; } + .spsa-split-list .spsa-delta { grid-column: 3; min-width: 7ch; } + .spsa-split-list .spsa-track-wrap { grid-column: 1 / -1; } + .spsa-split-list .spsa-scale { display: flex; } } /* ---------- Collapsible sections ---------- */ @@ -49,6 +98,10 @@ padding: 0; } +#content details.config-fold[open] { + padding-bottom: 14px; +} + .config-fold > summary { display: flex; align-items: baseline; @@ -61,6 +114,8 @@ .config-fold > summary::-webkit-details-marker { display: none; } +.config-fold > summary:hover { background: rgba(255, 255, 255, .03); } + .config-fold > summary .card-title { margin: 0; } .config-fold > summary:focus-visible { @@ -101,7 +156,9 @@ padding-right: 18px; } -.config-fold > table { margin-top: 8px; margin-bottom: 12px; width: calc(100% - 36px); } +#content .config-fold[open] > summary + * { margin-top: 12px; } + +.config-fold > table { margin-bottom: 12px; width: calc(100% - 36px); } /* ---------- Parameter names double as "show on chart" buttons ---------- */ @@ -142,7 +199,7 @@ button.spsa-name:focus-visible { /* ---------- History chart ---------- */ .spsa-history { - padding: 4px 0 18px; + padding: 0; } .spsa-history-head h3 { diff --git a/Templates/OpenBench/workload.html b/Templates/OpenBench/workload.html index 68594f5..3493e99 100644 --- a/Templates/OpenBench/workload.html +++ b/Templates/OpenBench/workload.html @@ -18,7 +18,7 @@ {% block content %}
- {% if type == "TUNE" %}
{% endif %} + {% if type == "TUNE" %}
SettingsEngine, network, book{% else %}
{% endif %} {% if type != "TUNE" %}

Configuration

{% endif %} @@ -74,8 +74,8 @@ {% if type == "TUNE" %}
{% else %}
{% endif %} -
-

Actions

+ {% if type == "TUNE" %}
ActionsApprove, stop, copy inputs, adjust{% else %}
+

Actions

{% endif %} {{workload|git_diff_text}} @@ -213,16 +213,12 @@
{% endif %} -
+ {% if type == "TUNE" %}{% else %}{% endif %} {% if type == "TUNE" %} - -
{% with panel=workload|spsa_param_panel %} -
-

Tuning progress

- +
{{ panel.complete }} @@ -236,14 +232,18 @@
+
+

Movement since the start

-

Each line is one parameter, as a share of its allowed range. Point at a name below to follow it, or click it to keep it on the chart.

+

Each line is a parameter, as a share of its range. Point at a name to follow it, or click to keep it on the chart.

{{ workload|spsa_history_chart }}
+
+