From 3335c4596f0692af66b60483bb327cabee52d827 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 22:31:05 +0100 Subject: [PATCH] web: a gear for Settings, Search leading the rail, real tabs Settings drew a sun because the sprite was a circle with rays; it is a cog now. Search is a modal, so it leads the rail (and the narrow dock) instead of sitting under the destinations, which leaves Settings last. The section strip reads as a tab bar: flush cells on a bar, the selected tab filled with the panel surface and underlined, no chip borders. --- web/index.html | 4 ++-- web/shell.css | 30 ++++++++++++++++++------------ web/src/app.js | 4 ++-- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/web/index.html b/web/index.html index d47b983a..bd01fde0 100644 --- a/web/index.html +++ b/web/index.html @@ -30,8 +30,8 @@ - - + + diff --git a/web/shell.css b/web/shell.css index d1a45773..223f6993 100644 --- a/web/shell.css +++ b/web/shell.css @@ -245,7 +245,9 @@ body { } .rail-item .icon, .rail-search .icon { color: currentColor; } -.rail-search { margin-top: var(--space-xs); } +/* Search opens a modal, so it leads the rail rather than squatting at the + bottom next to the status; Settings is the last destination. */ +.rail-search { margin: var(--space-xs) 0 var(--space-s); } .rail-search[aria-expanded="true"] { background: var(--tint-selected); color: var(--color-text); } .rail-badge { margin-left: auto; @@ -345,10 +347,10 @@ body { .section-strip { display: flex; flex: 0 0 auto; - align-items: center; - gap: var(--space-3xs); + align-items: stretch; + gap: 0; min-width: 0; - padding: 4px var(--space-xs); + padding: 0 var(--space-xs); background: var(--color-surface); border-top: 1px solid var(--color-divider); overflow-x: auto; @@ -359,27 +361,31 @@ body { .section-strip::-webkit-scrollbar { display: none; } .section-strip:empty { display: none; } +/* Real tabs, not chips: flush cells on a bar, the selected one underlined and + filled with the panel's own surface so it reads as connected to the content. */ .strip-tab { + position: relative; flex: 0 0 auto; min-height: var(--density-touch-target); display: inline-flex; align-items: center; - padding: 0 var(--space-xs); - border: 1px solid transparent; - border-radius: var(--radius-control); + padding: 0 var(--space-s); + border: 0; + border-radius: 0; background: transparent; color: var(--color-muted); - font-size: 12px; + font-size: 12.5px; + font-weight: var(--weight-medium); white-space: nowrap; } .strip-tab:hover { background: var(--tint-hover); color: var(--color-text); } .strip-tab[aria-selected="true"] { color: var(--color-text); - background: var(--color-surface-2); - border-color: var(--color-divider); - box-shadow: inset 0 -2px 0 var(--color-accent); font-weight: var(--weight-semibold); + background: var(--color-bg); + box-shadow: inset 0 -2px 0 var(--color-accent); } +.strip-tab:focus-visible { outline-offset: -3px; } /* ---- Bottom destination bar (narrow) ----------------------------------- */ @@ -538,7 +544,7 @@ body { order: -1; border-top: 0; border-bottom: 1px solid var(--color-divider); - background: var(--color-bg); + background: var(--color-surface); padding: 0 var(--space-s); } .destination-dock { display: none; } diff --git a/web/src/app.js b/web/src/app.js index a156ad6c..fa23ac8f 100644 --- a/web/src/app.js +++ b/web/src/app.js @@ -506,8 +506,8 @@ const appRail = h( h("span", { class: "rail-brand-mark", "aria-hidden": "true", text: "P" }), h("span", { text: "Pipelines" }), ), - railDestinations, railSearch, + railDestinations, h("div", { class: "rail-divider", role: "presentation" }), railSections, h("div", { class: "rail-footer" }, railStatus), @@ -534,7 +534,7 @@ const dock = h( "nav", { id: "destinationDock", class: "destination-dock", "aria-label": "Destinations" }, dockStatus, - h("div", { class: "dock-row" }, dockDestinations, dockSearch), + h("div", { class: "dock-row" }, dockSearch, dockDestinations), ); // The attention sheet lives in its own layer so it can overlay any view without // being torn down by a content re-render; renderAttentionSheet rebuilds it.