fix(ui): make exchange table fill page height with vertical scroll
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 58s
CI / docker (push) Successful in 50s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Has been cancelled

This commit is contained in:
hsiegeln
2026-03-28 14:54:29 +01:00
parent 5cb3de03af
commit 048f6566a9
3 changed files with 40 additions and 25 deletions

View File

@@ -268,7 +268,7 @@ function LayoutContent() {
<ContentTabs active={scope.tab} onChange={setTab} scope={scope} /> <ContentTabs active={scope.tab} onChange={setTab} scope={scope} />
)} )}
<main style={{ flex: 1, overflow: 'auto', padding: isAdminPage ? '1.5rem' : 0 }}> <main style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', padding: isAdminPage ? '1.5rem' : 0 }}>
<Outlet /> <Outlet />
</main> </main>
</AppShell> </AppShell>

View File

@@ -1,23 +1,36 @@
/* Scrollable content area */ /* Scrollable content area — fills remaining height */
.content { .content {
display: flex;
flex-direction: column;
flex: 1; flex: 1;
overflow-y: auto; min-height: 0;
min-width: 0; min-width: 0;
background: var(--bg-body); background: var(--bg-body);
} }
/* Table section — stretches to fill and scrolls internally */
/* Filter bar spacing */ /* Filter bar spacing */
.filterBar { .filterBar {
margin-bottom: 16px; margin-bottom: 16px;
} }
/* Table section */
.tableSection { .tableSection {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
background: var(--bg-surface); background: var(--bg-surface);
border-bottom: 1px solid var(--border-subtle);
overflow: hidden; overflow: hidden;
} }
.tableScroll {
flex: 1;
min-height: 0;
overflow-y: auto;
}
.tableHeader { .tableHeader {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@@ -267,6 +267,7 @@ export default function Dashboard() {
</div> </div>
</div> </div>
<div className={styles.tableScroll}>
<DataTable <DataTable
columns={columns} columns={columns}
data={rows} data={rows}
@@ -290,6 +291,7 @@ export default function Dashboard() {
/> />
</div> </div>
</div> </div>
</div>
</> </>
) )
} }