diff --git a/CLAUDE.md b/CLAUDE.md index 9b32f5a..6b7c336 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -650,7 +650,16 @@ restructure; the behavior itself predates it and is unchanged: re-ordered array, or editing/flagging would silently target the wrong row the moment a sort or filter was active. Confirmed correct by executing the real composable directly (not just reading it): sorted/filtered a 3-row fixture several ways and checked the - original index stayed attached to the right transaction through every case. + original index stayed attached to the right transaction through every case. Both the + header row and the filter row stay pinned while the table body scrolls + (`.txn-col table thead tr:first-child th`/`thead tr.filter-row th`, each `position: + sticky`) — these used to be ONE rule matching every `thead th` with `top:0`, which + made both rows stick to the exact same position at once; the filter row (later in the + DOM, painted on top) visually covered the header row the moment the table scrolled, + which read as "the header disappears on scroll, the filter row stays" (reported + 2026-10-12) rather than what it actually was - a stacking collision, not a missing + sticky rule. Fixed by giving the header row an explicit height (`34px`) and offsetting + the filter row's own `top` by that same value, so they stack instead of overlapping. - Per-row edit lock (`TransactionRow.vue`/`useRowEditing.js`): cells are read-only until that row's pencil icon is clicked (pencil rendered in the blue accent color, fixed 2026-10-11 — it was the default muted gray, inconsistent with the Save button's own blue); diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 7d446ea..4cee023 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -350,8 +350,19 @@ tr.editing td{ background:rgba(37,99,235,.03); } .txn-col .table-wrap{ flex:1 1 auto; min-height:0; overflow-y:auto; margin-top:4px; } -.txn-col table thead th{ - position:sticky; top:0; background:var(--navy-2); z-index:1; +/* The header row and the filter row beneath it both need to stay put on + scroll - they used to share one "top:0" rule, which made BOTH rows + stick to the very top of the scroll container at once: same position, + same stacking context, so the filter row (later in the DOM, painted on + top) visually covered the header row the moment the table scrolled, + not the "header disappears" bug it looked like. Giving the header row + an explicit height makes the filter row's own offset (stacking + directly beneath it) a known value instead of a guess. */ +.txn-col table thead tr:first-child th{ + position:sticky; top:0; height:34px; background:var(--navy-2); z-index:2; +} +.txn-col table thead tr.filter-row th{ + position:sticky; top:34px; background:var(--navy-2); z-index:1; } @media (max-width: 860px){ .review-grid{ flex-direction:column; position:static; } diff --git a/frontend/src/components/TransactionsTable.vue b/frontend/src/components/TransactionsTable.vue index f979095..812fba4 100644 --- a/frontend/src/components/TransactionsTable.vue +++ b/frontend/src/components/TransactionsTable.vue @@ -124,7 +124,6 @@ async function handleRecheck() {
No Transactions to Display.
Upload a source document to get started.