Move document nav into the transactions card; raise panel height 25%
DocumentNavBar no longer sits in its own standalone div above both panels - it's now rendered inside TransactionsTable.vue, across the top of the transactions card, above the Hide/Show Source Doc row, with no border/background box of its own (already inside the card's). Still disappears via the same v-if once there's nothing to navigate between. .pdf-col/.txn-col height raised from 82vh to 102.5vh (25% more), both panels still matching each other exactly.
This commit is contained in:
parent
ec58a956e9
commit
84261c25ef
10
CLAUDE.md
10
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.
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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() {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<DocumentNavBar />
|
||||
<div class="txn-col-head">
|
||||
<h2>Transactions</h2>
|
||||
<button class="btn-toggle" type="button" @click="uiStore.togglePdfCol">{{ toggleLabel }}</button>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ import { useBatchExtraction } from '../composables/useBatchExtraction'
|
|||
import FileUploadZone from '../components/FileUploadZone.vue'
|
||||
import RestoreBanner from '../components/RestoreBanner.vue'
|
||||
import ResultCard from '../components/ResultCard.vue'
|
||||
import DocumentNavBar from '../components/DocumentNavBar.vue'
|
||||
import ResizablePanels from '../components/ResizablePanels.vue'
|
||||
import SourceDocumentPanel from '../components/SourceDocumentPanel.vue'
|
||||
import TransactionsTable from '../components/TransactionsTable.vue'
|
||||
|
|
@ -78,8 +77,6 @@ onMounted(restoreOnLoad)
|
|||
<ResultCard />
|
||||
</div>
|
||||
|
||||
<DocumentNavBar />
|
||||
|
||||
<!--
|
||||
Source Document and Transactions (and the opening/closing balance
|
||||
fields that live in the latter) are always visible, even before a
|
||||
|
|
@ -89,7 +86,8 @@ onMounted(restoreOnLoad)
|
|||
something to display - see SourceDocumentPanel.vue/
|
||||
TransactionsTable.vue. Both read the ACTIVE document
|
||||
(extractionStore.activeDocument), not the staged-but-unprocessed
|
||||
chosenFiles.
|
||||
chosenFiles. DocumentNavBar lives INSIDE TransactionsTable now
|
||||
(across its own top, above the Hide Source Doc button), not here.
|
||||
-->
|
||||
<ResizablePanels>
|
||||
<template #source>
|
||||
|
|
|
|||
Loading…
Reference in New Issue