Fix sticky header/filter-row stacking collision; drop dead-space note
Header row and filter row both stuck to top:0 via one shared rule, so the filter row (later in the DOM) visually covered the header row on scroll instead of stacking beneath it. Gave the header row an explicit height and offset the filter row's own sticky top by that amount so they stack correctly. Also removed the now-empty <div class="note"> left over after its instructional text was deleted - it was still taking up margin-bottom space above the table for no reason.
This commit is contained in:
parent
534907626c
commit
7af1749887
11
CLAUDE.md
11
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);
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ async function handleRecheck() {
|
|||
</div>
|
||||
<div v-if="balanceMismatchText" class="error-note visible">{{ balanceMismatchPrefix }}{{ balanceMismatchText }}</div>
|
||||
<div class="note">This statement format may not print a clean opening/closing balance — enter them here to run the full statement balance check; otherwise it's marked "not available" rather than guessed.</div>
|
||||
<div v-if="result" class="note"></div>
|
||||
|
||||
<div v-if="!result" class="empty-panel empty-panel-table">
|
||||
<p>No Transactions to Display.<br>Upload a source document to get started.</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue