The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): tab ✕ fade lands on the visible field under Glass
Brooklyn Nicholson433f7196760e
diff --git a/apps/desktop/src/components/ui/pane-tab.tsx b/apps/desktop/src/components/ui/pane-tab.tsxindex 5eb64e4e027..b115563a668 100644--- a/apps/desktop/src/components/ui/pane-tab.tsx+++ b/apps/desktop/src/components/ui/pane-tab.tsx@@ -16,8 +16,13 @@ export const PANE_TAB_STRIP_LINE_RIGHT = 'shadow-[inset_-1px_0_0_var(--ui-stroke// the label after every wash lands. The hover close-button gradient fades into// it, so the fade is seamless on any theme. Idle hover repaints it below with// the same color-mix the darkening wash applies.+//+// `--tab-bg` is the base every wash mixes onto. Under Glass the surface tokens+// are transparent and the <body> field is what shows through a tab, so the+// base prefers `--glass-field` (styles.css sets it only under glass, on+// `data-glass-field` declarers) and falls back to the tab's own surface token.const TAB =- 'group/tab relative flex shrink-0 items-center border-transparent bg-(--tab-bg) text-[0.6875rem] font-medium [-webkit-app-region:no-drag] [--tab-face:var(--tab-bg)]'+ 'group/tab relative flex shrink-0 items-center border-transparent bg-(--tab-bg) text-[0.6875rem] font-medium [-webkit-app-region:no-drag] [--tab-face:var(--tab-bg)] [--tab-bg:var(--glass-field,var(--tab-surface))]'// Full height: with the strip's rule removed there is no last-pixel row to// leave uncovered, so tabs fill the bar and no sliver of gutter shows through.@@ -31,7 +36,7 @@ const TAB_CLOSEABLE = 'min-w-13'const TAB_VERTICAL ='w-full max-h-48 justify-center not-first:border-t not-first:border-t-(--ui-stroke-quaternary) [writing-mode:vertical-rl]'-const TAB_ACTIVE = 'h-full text-foreground [--tab-bg:var(--pane-tab-active-bg,var(--ui-editor-surface-background))]'+const TAB_ACTIVE = 'h-full text-foreground [--tab-surface:var(--pane-tab-active-bg,var(--ui-editor-surface-background))]'// Horizontal only: the active tab is the sole seam on the strip — a// theme-primary underline drawn as an inset shadow in its own last pixel row,@@ -44,7 +49,7 @@ const TAB_ACTIVE_UNDERLINE = 'shadow-[inset_0_-2px_0_var(--pane-tab-active-accen// a darkening wash to register at all. `--tab-face` tracks the wash — the same// mix flattened onto `--tab-bg` — so the close gradient matches what shows.const TAB_IDLE =- 'text-(--ui-text-tertiary) [--tab-bg:var(--pane-tab-strip-bg,var(--ui-sidebar-surface-background))] hover:shadow-[inset_0_0_0_100vmax_color-mix(in_srgb,#000_var(--ui-tab-hover-darken),transparent)] hover:[--tab-face:color-mix(in_srgb,#000_var(--ui-tab-hover-darken),var(--tab-bg))] hover:text-(--ui-text-secondary)'+ 'text-(--ui-text-tertiary) [--tab-surface:var(--pane-tab-strip-bg,var(--ui-sidebar-surface-background))] hover:shadow-[inset_0_0_0_100vmax_color-mix(in_srgb,#000_var(--ui-tab-hover-darken),transparent)] hover:[--tab-face:color-mix(in_srgb,#000_var(--ui-tab-hover-darken),var(--tab-bg))] hover:text-(--ui-text-secondary)'// A tab riding a multi-tab selection: an accent wash over whatever surface the// tab sits on. A background-image gradient (not a shadow) so it stacks cleanly@@ -117,6 +122,7 @@ export const PaneTab = React.forwardRef<HTMLDivElement, PaneTabProps>(function P)}data-active={active}data-closeable={(onClose && !vertical) || undefined}+ data-glass-field=""data-selected={selected || undefined}data-vertical={vertical || undefined}onClickCapture={event => {diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.cssindex c0583524d36..c0ff2b7cb82 100644--- a/apps/desktop/src/styles.css+++ b/apps/desktop/src/styles.css@@ -617,6 +617,16 @@background: color-mix(in srgb, var(--ui-bg-chrome) var(--translucency-glass-keep, 100%), transparent);}+ /* A surface that FADES INTO the field (a pane tab's hover ✕ runway) declares+ `data-glass-field` and reads `--glass-field` for its endpoint. Under glass+ the surface tokens are transparent, so a fade aimed at one goes+ transparent→transparent and the runway vanishes; the field is the <body>+ mix above, so that is what a fade must land on. Inert with glass off:+ the caller's own fallback (its surface token) applies. */+ :root[data-hermes-glass] [data-glass-field] {+ --glass-field: color-mix(in srgb, var(--ui-bg-chrome) var(--translucency-glass-keep, 100%), transparent);+ }+/* Sidebar scope (the Finder shape): glass rail, opaque content column.<body> stays the one painter but splits at the rail's visual edge — thestore publishes it as --glass-rail-edge (live-tracked through collapse