diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 9a0df5c..a605262 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -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;