Split the fill seam where ownership splits: the shell bounds, the page fills

This commit is contained in:
2026-09-09 14:11:10 +02:00
parent 7f2c0cc2c2
commit 696da397e7
10 changed files with 95 additions and 25 deletions
@@ -4,3 +4,12 @@
.scheduling-page .table-wrap {
margin-top: var(--space-3, 0.75rem);
}
/* The chain the shell cannot supply: `fill` bounds the content column, and every wrapper between it
and the table's own `.scroll-region` has to pass that height down. */
.app-fill .scheduling-page {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
}
+2 -1
View File
@@ -7,7 +7,7 @@
%><%
const navHtml = include("partials/nav-tree", { nodes: chrome.nav });
const filtersHtml = include("partials/filter-bar", filterBar);
const tableHtml = include("partials/data-table", table);
const tableHtml = include("partials/data-table", { ...table, fills: true });
const alertHtml = locals.error ? include("partials/alert", { text: locals.error, tone: "neg" }) : "";
const actions = canWrite
? '<a class="btn btn-primary" href="' + localeHref(newHref) + '"><svg class="ico ico-sm" aria-hidden="true"><use href="#i-plus"/></svg>' + t("scheduling.shifts.new") + '</a>'
@@ -16,6 +16,7 @@
<%- include("partials/shell", {
actions,
body: '<div class="scheduling-page">' + alertHtml + filtersHtml + '<p class="shift-count">' + count + '</p>' + tableHtml + '</div>',
fill: true, // a long list scrolls under its own header rather than taking the page with it
brand: chrome.brand,
breadcrumbs,
csrfToken: chrome.csrfToken,