feat(redesign): preview panel behaviour + container-query columns #324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/redesign3e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Redesign phase 3, slice 5 — the last one from the files-mockup handoff.
Bug found while porting
pvsel(the "you are previewing this row" marker) was styled only astr.pvsel > td/tr.pvsel > td:first-child. The redesign replaced the<table>with.lrgrid rows, so those selectors have matched nothing since — the previewed row has been unmarked in the shipped app. Now.lr.pvsel(left accent bar + sunk plate) and.tile.pvsel(inset accent ring), kept visually distinct from selection: looking at vs in the set Delete applies to.Behaviour
pointer-events: noneworkaround is removed as agreed.role="separator",tabindex="0"— ←/→ resize (Shift for coarse), Home restores default; double-click also resets.pvMax()lets the panel grow only until the list hitsLIST_MIN(360px), with 70% viewport as an upper bound. The old flat 70% could squeeze the list to ~100px, where no column arrangement helps.pvApplyWidth()ran only on open, so a panel sized on a wide window kept its pixels after the window shrank.pvMark()is the single writer, applied to both trees and called fromrenderRows(), so the marker survives a sort, a reload and a list↔grid switch (the old loop walked#rowschildren only).Columns
The row grid's breakpoints move from
@mediato@container listonmain(820/560/400px of the list's own width). The preview panel takes width away without the viewport changing, so media queries never fired and the whole shortfall landed on the one flexible track — the filename shrank toward zero while fixed columns kept their pixels. Also adds the name's7chfloor, lets chips shrink, and collapses chips to their glyph under 400px so status is never what disappears.Verification
node --checkall script blocks; nine anchored splices, all count=1; zero legacytr.pvselrules remain. Operator check: open a PDF preview, drag the divider across it and release (should stop cleanly), tab to the divider and use arrows, narrow the window with the panel open, sort with a preview open.