diff --git a/CLAUDE.md b/CLAUDE.md index 2553d29..8d91bb2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -748,7 +748,12 @@ restructure; the behavior itself predates it and is unchanged: there's more than one document) provides ◀/▶ to browse completed results, swapping the Transactions table, the Source Document preview, and the visible document name together as one unit - all three read `extractionStore.activeDocument`/`activeIndex`, so - `DocumentNavBar` is the only component that needs to know navigation exists at all. + `DocumentNavBar` is the only component that needs to know navigation exists at all. Lives + INSIDE `TransactionsTable.vue` now (moved there 2026-10-13, per explicit request - it + started as its own standalone bar above `ResizablePanels`, spanning the whole page) - + rendered first, across the top of the transactions card, above the Hide/Show Source Doc + row, with no border/background box of its own since it's already inside the card's (just + a bottom border separating it from the "Transactions" title beneath). Picking/dropping ADDS to the staged list (`useFileUpload.js`'s `chosenFiles`) rather than replacing it (fixed 2026-10-13 - the first version replaced it, so picking a second file after a first lost the first entirely, reported by the user as "I select @@ -783,6 +788,9 @@ restructure; the behavior itself predates it and is unchanged: 504px; 160px is a legible floor for Description) — below that, `.table-wrap`'s own `overflow-x:auto` takes over and the table scrolls horizontally instead of compressing further, while at or above 664px `width:100%` still governs exactly as before. + Both panels' own fixed height (`.pdf-col`/`.txn-col`) is `102.5vh` (raised 25% from the + original `82vh` per request, 2026-10-13) - both still track each other exactly, same + "fixed total card height, same pattern" relationship documented where each rule lives. - A Hide/Show toggle in the Transactions header (`TransactionsTable.vue`, driven by `uiStore.pdfColHidden`, labeled "Hide Source Doc"/"Show Source Doc") collapses the source-doc column so Transactions fills the row. diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 3679462..a0043be 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -268,10 +268,14 @@ tr.editing td{ background:rgba(37,99,235,.03); } } .restore-banner button:hover{ color:var(--t1); border-color:var(--border-b); } +/* Sits across the top of the transactions card, above the Hide Source + Doc row (TransactionsTable.vue renders it first) - no border/ + background box of its own since it's already inside the card's; a + bottom border is enough to separate it from the title row beneath. */ .doc-nav{ display:flex; align-items:center; justify-content:center; gap:14px; - margin-bottom:16px; padding:8px 14px; background:var(--navy-2); border:1px solid var(--border-2); - border-radius:10px; + padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--border-2); + flex-shrink:0; } .doc-nav-arrow{ background:transparent; border:1px solid var(--border-2); color:var(--t2); width:28px; height:28px; @@ -292,10 +296,11 @@ tr.editing td{ background:rgba(37,99,235,.03); } .review-grid{ display:flex; align-items:start; position:sticky; top:24px; } /* 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; } + empty-panel-source) was pinned to a fixed height, leaving the card's + own total height as that PLUS pdf-col-head's height and the card's + own padding, taller than .txn-col's own flat height and visibly + mismatched. 102.5vh = the original 82vh increased 25% per request. */ +.pdf-col{ flex:0 0 40%; min-width:260px; display:flex; flex-direction:column; height:102.5vh; } .pdf-col-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-shrink:0; } @@ -365,7 +370,7 @@ 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); } -/* Fixed to the same 82vh the source-document side's own child (iframe/ +/* Fixed to the same height 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 @@ -376,7 +381,7 @@ tr.editing td{ background:rgba(37,99,235,.03); } viewport's - needed because the resizer can narrow this column on an otherwise-wide screen, which a @media viewport breakpoint never sees. */ .txn-col{ - flex:1 1 auto; min-width:260px; display:flex; flex-direction:column; height:82vh; + flex:1 1 auto; min-width:260px; display:flex; flex-direction:column; height:102.5vh; container-type:inline-size; container-name:txncol; } .txn-col-head{ diff --git a/frontend/src/components/TransactionsTable.vue b/frontend/src/components/TransactionsTable.vue index 1de6971..cd2d6ba 100644 --- a/frontend/src/components/TransactionsTable.vue +++ b/frontend/src/components/TransactionsTable.vue @@ -26,6 +26,7 @@ import { fmtMoney } from '../services/formatService' import * as extractionService from '../services/extractionService' import { useTransactionFilters } from '../composables/useTransactionFilters' import TransactionRow from './TransactionRow.vue' +import DocumentNavBar from './DocumentNavBar.vue' const extractionStore = useExtractionStore() const uiStore = useUiStore() @@ -112,6 +113,7 @@ async function handleRecheck() {