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