Match Transactions panel height to Source Document panel
.pdf-col's height came from its child (iframe/img-preview-wrap/ empty-panel-source, all fixed at 82vh); .txn-col had no height of its own, just whatever its header+fields+notes+table content needed - the two columns drifted apart whenever txn-col's content was taller than 82vh on its own. .txn-col is now flex-column with a fixed height:82vh, matching its sibling exactly; the table area (table-wrap, or empty-panel-table when there's no result yet) is the one piece that absorbs whatever space is left after the header/fields/notes above it (flex:1, min-height:0 so its own overflow-y:auto scroll still works within that constrained space), rather than the whole column growing taller than 82vh. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
bcebc50466
commit
0ec44dd28a
|
|
@ -237,7 +237,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
|
|||
border:1px solid var(--border-2); border-radius:10px; background:var(--navy-3);
|
||||
}
|
||||
.empty-panel-source{ width:100%; height:82vh; }
|
||||
.empty-panel-table{ min-height:260px; margin-top:4px; }
|
||||
.empty-panel-table{ flex:1 1 auto; min-height:0; margin-top:4px; }
|
||||
.resizer{
|
||||
flex:0 0 28px; align-self:stretch; cursor:col-resize;
|
||||
display:flex; align-items:center; justify-content:center;
|
||||
|
|
@ -267,9 +267,18 @@ tr.editing td{ background:rgba(37,99,235,.03); }
|
|||
.resizer:hover::after, .resizer.dragging::after{
|
||||
background:var(--blue); box-shadow: -4px 0 0 var(--blue), 4px 0 0 var(--blue);
|
||||
}
|
||||
.txn-col{ flex:1 1 auto; min-width:260px; }
|
||||
.txn-col-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
|
||||
/* Fixed to the same 82vh the source-document side's own child (iframe/
|
||||
img-preview-wrap/empty-panel-source) is - flex-column so the table
|
||||
area (the one piece whose content height varies) absorbs whatever
|
||||
space is left after the header/fields/notes above it, rather than the
|
||||
whole column growing past its sibling's height the way it did when
|
||||
only .table-wrap itself had a height cap. */
|
||||
.txn-col{ flex:1 1 auto; min-width:260px; display:flex; flex-direction:column; height:82vh; }
|
||||
.txn-col-head{
|
||||
display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; flex-shrink:0;
|
||||
}
|
||||
.txn-col-head h2{ margin-bottom:0; }
|
||||
.txn-col .fields, .txn-col .note{ flex-shrink:0; }
|
||||
.btn-toggle{
|
||||
background:var(--blue); border:none; color:var(--navy-2); font-family:var(--fd); font-weight:700;
|
||||
font-size:12px; padding:7px 15px; border-radius:8px; cursor:pointer; transition:all .15s; flex-shrink:0;
|
||||
|
|
@ -278,7 +287,9 @@ tr.editing td{ background:rgba(37,99,235,.03); }
|
|||
.btn-toggle:hover{ background:var(--blue-b); }
|
||||
.btn-toggle:disabled{ opacity:.5; cursor:not-allowed; box-shadow:none; }
|
||||
.pdf-col.hidden-panel, .resizer.hidden-panel{ display:none; }
|
||||
.txn-col .table-wrap{ max-height:82vh; overflow-y:auto; margin-top:4px; }
|
||||
.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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue