mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 18:22:53 +01:00
Fixed track column header style
This commit is contained in:
1 parent
22f59c5c1e
commit
738d04eada
2 files changed
+14
-2
No files matched your search
@@ -714,6 +714,10 @@ easy to break:
|
||||
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
|
||||
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
|
||||
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>`;
|
||||
|
||||
@@ -214,7 +214,15 @@ function HeaderRow({
|
||||
}}
|
||||
>
|
||||
<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) => {
|
||||
if (!onContextMenu) return
|
||||
e.preventDefault()
|
||||
@@ -511,7 +519,7 @@ export function TrackTable({
|
||||
return (
|
||||
<div
|
||||
ref={parentRef}
|
||||
className="h-full overflow-auto"
|
||||
className="h-full overflow-auto px-1.5"
|
||||
onClick={(e) => {
|
||||
// A click in the empty space below the rows clears the selection.
|
||||
const t = e.target as HTMLElement
|
||||
|
||||
Reference in new issue
Block a user