gui: the sticky tab strips are drawn only under scrolled rows, rounded and evenly inset (CHENGJIAHEGOXIS on X)
Over a background picture the Library tab bar showed a square frosted box
around the rounded tabs, 16px out at the sides, 8 at the top and 4 at the
foot. The strip behind the tabs (Library, Plugins, Settings, the Add
sheet) is now drawn only once rows scroll under it (.stuck), fading in
with opacity, so at the top only the track shows: radius 7, an even 2px
around its 5px pills. When drawn, it sits 4px out from the tabs with
radius 11 at its foot (Library, Plugins), and 6px out with radius 13 in
Settings and the Add sheet.
Run: shots in Chromium and WebKit, light and dark, with and without a
wallpaper, at 1280 and 640, at rest and scrolled, before and after
(strip opacity 0 at rest, insets 4/4/4 when stuck). Full GUI suite at
18ec1674a on mote: 1041 fails across ~118 files; those files at
c4d64a70b (origin/main): 971 fails, same files. market-have, models-fold,
key-replace and plugin-card-update, red only in the head run, were rerun
alone: market-have 3 of 6 red at base, 0 of 6 at head; the others fail
the same at base. Not tried: a real Windows WebView2 window.
This commit is contained in:
+16
-14
@@ -3682,16 +3682,16 @@ body.side-nav #addSheet .add-tools.afloat > * { pointer-events: auto; --wails-dr
|
||||
body.side-nav #addSheet .add-tools.afloat > .find { flex: 0 1 var(--hint-w, 180px); min-width: 120px; }
|
||||
/* a narrow window has no room in its bar: the sheet's head stays at the
|
||||
top while the sheet is under it, as Settings' does */
|
||||
body:not(.side-nav) #addSheet > .row-head { position: sticky; top: 0; z-index: 5; --bleed-l: 12px; --bleed-r: 12px; }
|
||||
body.window:not(.side-nav) #addSheet > .row-head { top: -2px; --bleed-l: 16px; --bleed-r: 16px; }
|
||||
body:not(.side-nav) #addSheet > .row-head { position: sticky; top: 0; z-index: 5; }
|
||||
body.window:not(.side-nav) #addSheet > .row-head { top: -2px; }
|
||||
body:not(.side-nav) #addSheet > .row-head::before {
|
||||
content: ""; position: absolute; z-index: -1; pointer-events: none;
|
||||
top: -6px; bottom: -6px; left: calc(-1 * var(--bleed-l)); right: calc(var(--bar, 0px) - var(--bleed-r));
|
||||
top: -6px; bottom: -6px; left: -6px; right: -6px; border-radius: 0 0 13px 13px;
|
||||
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
||||
-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
|
||||
box-shadow: 0 1px 0 transparent; transition: box-shadow .18s var(--ease);
|
||||
box-shadow: 0 1px 0 transparent; opacity: 0; transition: opacity .18s var(--ease-out), box-shadow .18s var(--ease);
|
||||
}
|
||||
body:not(.side-nav) #addSheet > .row-head.stuck::before { box-shadow: 0 1px 0 var(--line-2); }
|
||||
body:not(.side-nav) #addSheet > .row-head.stuck::before { opacity: 1; box-shadow: 0 1px 0 var(--line-2); }
|
||||
@supports not (color: color-mix(in srgb, red 50%, blue)) { body:not(.side-nav) #addSheet > .row-head::before { background: var(--bg); } }
|
||||
/* the provider editor, in a dialog */
|
||||
/* the label column is as wide as its longest label, so that label starts
|
||||
@@ -4173,21 +4173,23 @@ body:not(.side-nav) #addSheet > .row-head.stuck::before { box-shadow: 0 1px 0 va
|
||||
/* with the tabs across the top (the sidebar has them in the title bar) the
|
||||
parts' tabs and the search stay at the top of the page while a long part
|
||||
(About) scrolls under them, on the frosted strip the Library's and the
|
||||
Plugins' tabs have (.lib-head), a hairline once something is beneath
|
||||
(#2396). The strip is the head's ::before, reaching over the view's
|
||||
padding and the head's margins so no row shows through above or below
|
||||
it; at the page's top it is the page's own colour, nothing moved. The
|
||||
Plugins' tabs have (.lib-head), shown with a hairline once something is
|
||||
beneath (#2396). The strip is the head's ::before, reaching over the
|
||||
head's margins so no row shows through above or below it, 6px out from
|
||||
the tabs (the first sits 7px out) and the search at the sides as at the
|
||||
foot, rounded by their 7px plus those 6px; at the page's top it is not
|
||||
drawn, nothing moved. The
|
||||
window's view is padded 2px at the top: the head stops over it */
|
||||
body:not(.side-nav) #view-settings .set-head { position: sticky; top: 0; z-index: 5; --bleed-l: 12px; --bleed-r: 12px; }
|
||||
body.window:not(.side-nav) #view-settings .set-head { top: -2px; --bleed-l: 16px; --bleed-r: 16px; }
|
||||
body:not(.side-nav) #view-settings .set-head { position: sticky; top: 0; z-index: 5; }
|
||||
body.window:not(.side-nav) #view-settings .set-head { top: -2px; }
|
||||
body:not(.side-nav) #view-settings .set-head::before {
|
||||
content: ""; position: absolute; z-index: -1; pointer-events: none;
|
||||
top: -6px; bottom: -6px; left: calc(-1 * var(--bleed-l)); right: calc(var(--bar, 0px) - var(--bleed-r));
|
||||
top: -6px; bottom: -6px; left: -13px; right: -6px; border-radius: 0 0 13px 13px;
|
||||
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
||||
-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
|
||||
box-shadow: 0 1px 0 transparent; transition: box-shadow .18s var(--ease);
|
||||
box-shadow: 0 1px 0 transparent; opacity: 0; transition: opacity .18s var(--ease-out), box-shadow .18s var(--ease);
|
||||
}
|
||||
body:not(.side-nav) #view-settings .set-head.stuck::before { box-shadow: 0 1px 0 var(--line-2); }
|
||||
body:not(.side-nav) #view-settings .set-head.stuck::before { opacity: 1; box-shadow: 0 1px 0 var(--line-2); }
|
||||
@supports not (color: color-mix(in srgb, red 50%, blue)) { body:not(.side-nav) #view-settings .set-head::before { background: var(--bg); } }
|
||||
.set-q { flex: 0 1 180px; margin-left: auto; min-width: 120px; }
|
||||
.set-searching .set-tabs { display: none; }
|
||||
|
||||
@@ -1,32 +1,33 @@
|
||||
/* Library: instructions, MCP servers and skills for every agent. */
|
||||
#view-library { gap: 0; }
|
||||
/* The tabs stay at the top while the page scrolls under them, on a frosted
|
||||
strip as wide as the view; a hairline shows once something is beneath.
|
||||
The strip's own box keeps to the view's content box and its ::before
|
||||
reaches out over the view's padding (--bleed-l/-r): a box that ran past
|
||||
the content's end edge, by a negative margin, was 16px of sideways
|
||||
strip that shows, with a hairline, once something is beneath. At the
|
||||
page's top nothing is: the strip is not drawn, so over a background
|
||||
picture there is no square box around the rounded tabs (CHENGJIAHEGOXIS
|
||||
on X). Under the tabs it is 4px out from them at the sides and the foot,
|
||||
with the tabs' radius plus those 4px. The strip's own box keeps to the
|
||||
view's content box and only its ::before reaches past it: a box that ran
|
||||
past the content's end edge, by a negative margin, was 16px of sideways
|
||||
scroll in macOS 15's WebKit, which leaves a negative margin-end out of
|
||||
a flex scroller's scrollable width (#1236). */
|
||||
.lib-head {
|
||||
position: sticky; top: 0; z-index: 5;
|
||||
display: flex; align-items: center; gap: 8px; flex: none;
|
||||
margin: 0; padding: 6px 0 4px;
|
||||
--bleed-l: 12px; --bleed-r: 12px;
|
||||
}
|
||||
.lib-head::before {
|
||||
content: ""; position: absolute; z-index: -1; pointer-events: none;
|
||||
top: 0; bottom: 0; left: calc(-1 * var(--bleed-l)); right: calc(var(--bar, 0px) - var(--bleed-r)); /* the bar's room is out of the padding */
|
||||
top: 0; bottom: 0; left: -4px; right: -4px; border-radius: 0 0 11px 11px;
|
||||
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
||||
-webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
|
||||
box-shadow: 0 1px 0 transparent; transition: box-shadow .18s var(--ease);
|
||||
box-shadow: 0 1px 0 transparent; opacity: 0; transition: opacity .18s var(--ease-out), box-shadow .18s var(--ease);
|
||||
}
|
||||
/* the window's view is padded 2px at the top: the strip reaches over it */
|
||||
body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; --bleed-l: 16px; --bleed-r: 16px; }
|
||||
body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; }
|
||||
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
|
||||
body.web .lib-head {
|
||||
flex-wrap: wrap;
|
||||
margin: -2px 0 0; padding: 8px 0 4px;
|
||||
--bleed-l: var(--view-left); --bleed-r: var(--view-right);
|
||||
}
|
||||
body.web .lib-tabs { max-width: 100%; flex-wrap: wrap; }
|
||||
body.web .lib-more, body.web .lib-discover, body.web .lib-backups { flex: none; }
|
||||
@@ -43,7 +44,7 @@ body.window .lib-head { top: -2px; margin: -2px 0 0; padding: 8px 0 4px; --bleed
|
||||
tabs wrap onto a second line rather than scroll the view sideways */
|
||||
.lib-tabs { max-width: 100%; flex-wrap: wrap; }
|
||||
.lib-headacts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
|
||||
.lib-head.stuck::before { box-shadow: 0 1px 0 var(--line-2); }
|
||||
.lib-head.stuck::before { opacity: 1; box-shadow: 0 1px 0 var(--line-2); }
|
||||
.lib-tabs .opt { height: 24px; padding: 0 12px; font-size: 12.5px; }
|
||||
.lib-more, .lib-discover, .lib-backups { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.lib-mini { display: inline-grid; place-items: center; color: var(--muted); }
|
||||
|
||||
Reference in New Issue
Block a user