Fixed track column header style

This commit is contained in:
patben8 committed 2026-09-25 16:46:21 +02:00
1 parent 22f59c5c1e
commit 738d04eada
2 files changed
+14 -2

No files matched your search

+4
View File
@@ -714,6 +714,10 @@ easy to break:
away with the first screenful and leave later content on bare background (the away with the first screenful and leave later content on bare background (the
column chooser's last items did). Give the glass frame `overflow-hidden` and column chooser's last items did). Give the glass frame `overflow-hidden` and
scroll an inner element — as every dialog and `ContextMenu` do. scroll an inner element — as every dialog and `ContextMenu` do.
- **Keep backdrop blurs on SHORT elements small** (the table's sticky header uses
8 px). Chrome silently skips a large backdrop blur on a thin strip — 12 px and
up left the rows under the ~33 px header perfectly sharp, with the computed
style still reporting the blur, so nothing looks wrong in DevTools.
- **The accent is `oklch(0.8 0.11 var(--accent-hue))`** — the cover's hue at a - **The accent is `oklch(0.8 0.11 var(--accent-hue))`** — the cover's hue at a
FIXED lightness and chroma, so dark text on it keeps its contrast whatever is FIXED lightness and chroma, so dark text on it keeps its contrast whatever is
loaded. `lib/ambient.ts` sets `--accent-hue` and `--amb-1..4` on `<html>`; loaded. `lib/ambient.ts` sets `--accent-hue` and `--amb-1..4` on `<html>`;
+10 -2
View File
@@ -214,7 +214,15 @@ function HeaderRow({
}} }}
> >
<div <div
className="sticky top-0 z-10 flex border-b border-line bg-ink-850" // Frosted glass: rows scroll UNDER the sticky header, so it blurs
// them rather than hiding them behind a solid bar. Safe to filter —
// the column menu it opens is portalled (see "Theme" in CLAUDE.md).
// Keep the radius SMALL: on a strip this short, Chrome silently skips
// a large backdrop blur (12 px and up left the rows perfectly sharp).
// A LIGHT tint, as frosted glass is lighter than what it covers, and
// inset from the panel's edges so it never blurs the panel's bright
// rim into a glowing band along its side.
className="sticky top-0 z-10 mt-1.5 flex rounded-xl bg-white/[0.07] shadow-[inset_0_1px_0_rgb(255_255_255/0.14),inset_0_0_0_1px_rgb(255_255_255/0.07),0_6px_16px_-8px_rgb(0_0_0/0.6)] backdrop-blur-[8px]"
onContextMenu={(e) => { onContextMenu={(e) => {
if (!onContextMenu) return if (!onContextMenu) return
e.preventDefault() e.preventDefault()
@@ -511,7 +519,7 @@ export function TrackTable({
return ( return (
<div <div
ref={parentRef} ref={parentRef}
className="h-full overflow-auto" className="h-full overflow-auto px-1.5"
onClick={(e) => { onClick={(e) => {
// A click in the empty space below the rows clears the selection. // A click in the empty space below the rows clears the selection.
const t = e.target as HTMLElement const t = e.target as HTMLElement