Actually fix the height mismatch - .pdf-col itself had no fixed height

The previous commit fixed .txn-col but missed the real asymmetry: only
.pdf-col's CHILD (iframe/img-preview-wrap/empty-panel-source) was pinned
to 82vh - the .pdf-col CARD itself had no height of its own, so its real
total height was 82vh plus pdf-col-head's own height plus the card's
padding, taller than .txn-col's flat 82vh. Visually this is exactly
"transactions panel is shorter."

Applied the identical fixed-height-flex-column pattern to .pdf-col that
.txn-col already had: height:82vh on the card itself, pdf-col-head
flex-shrink:0, and the child (iframe/img-preview-wrap/empty-panel-source)
changed from height:82vh to flex:1 1 auto; min-height:0 so it fills
whatever space remains under the head - both columns are now driven by
the same fixed value through the same structural pattern, which is what
actually guarantees matching heights (one side being content-driven and
the other fixed can't reliably match, regardless of what the fixed value is).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
JasonFraser 2026-10-12 06:55:14 -04:00
parent 0ec44dd28a
commit 1ab3d1bb42
1 changed files with 12 additions and 5 deletions

View File

@ -199,11 +199,18 @@ tr.editing td{ background:rgba(37,99,235,.03); }
scrolls, instead of the PDF pinning in place while transactions
scrolls past it underneath (they'd drift out of alignment). */
.review-grid{ display:flex; align-items:start; position:sticky; top:24px; }
.pdf-col{ flex:0 0 40%; min-width:260px; }
.pdf-col-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
/* Fixed total card height, same pattern .txn-col uses (see its own
comment) - previously only the CHILD (iframe/img-preview-wrap/
empty-panel-source) was pinned to 82vh, leaving the card's own total
height as 82vh PLUS pdf-col-head's height and the card's own padding,
taller than .txn-col's flat 82vh and visibly mismatched. */
.pdf-col{ flex:0 0 40%; min-width:260px; display:flex; flex-direction:column; height:82vh; }
.pdf-col-head{
display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-shrink:0;
}
.pdf-col-head h2{ margin-bottom:0; }
.pdf-col iframe{
width:100%; height:82vh; border:1px solid var(--border-2); border-radius:10px;
width:100%; flex:1 1 auto; min-height:0; border:1px solid var(--border-2); border-radius:10px;
background:var(--navy-3); display:block;
}
/* Images get their own zoomable/scrollable panel instead of the PDF
@ -223,7 +230,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
.img-zoom-controls button:hover{ background:rgba(37,99,235,.08); border-color:var(--blue); color:var(--blue); }
.img-zoom-controls span{ font-size:11.5px; color:var(--t3); min-width:38px; text-align:center; font-family:var(--fm); }
.img-preview-wrap{
width:100%; height:82vh; border:1px solid var(--border-2); border-radius:10px;
width:100%; flex:1 1 auto; min-height:0; border:1px solid var(--border-2); border-radius:10px;
background:var(--navy-3); overflow:auto; display:block;
}
.img-preview-wrap img{ display:block; }
@ -236,7 +243,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
color:var(--t4); font-size:13px; line-height:1.6; padding:40px 24px;
border:1px solid var(--border-2); border-radius:10px; background:var(--navy-3);
}
.empty-panel-source{ width:100%; height:82vh; }
.empty-panel-source{ width:100%; flex:1 1 auto; min-height:0; }
.empty-panel-table{ flex:1 1 auto; min-height:0; margin-top:4px; }
.resizer{
flex:0 0 28px; align-self:stretch; cursor:col-resize;