fix: Kanban panels keep their size; their lists scroll inside
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s

Creating users, machines or orders no longer changes the screen: Pessoas
and the Tiny log have a fixed height, Máquinas shows two and scrolls,
Pagamentos fills the window, Números' machines and treated art scroll in
their panels, and the board fills the window with each column scrolling
under its head. On the phone the pages scroll as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-31 14:42:18 -03:00
parent d2e340032e
commit f5c8bcfb90
3 changed files with 37 additions and 9 deletions

View File

@@ -591,7 +591,7 @@ label.fopt{cursor:pointer;user-select:none}
.phead h2{margin:0;font-size:15px;font-weight:650}
.phead .n{font-size:13px;color:var(--tx3)}
.phead .hint{color:var(--tx3);display:flex;cursor:help}
.phint{margin:0;padding:12px 18px 0;font-size:13px;color:var(--tx2)}
.phint{margin:0;padding:12px 18px;font-size:13px;color:var(--tx2)}
.pfilters{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inp.sm{height:34px;width:auto;font-size:13px}
.inp.num{width:110px}
@@ -771,7 +771,7 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.pill.info,.pill.accent,.pill.muted{color:var(--tx2)}
/* Máquinas: one tile each, its metres open, its orders by stage, who is on it. */
.mtiles{display:grid;grid-template-columns:1fr;gap:1px;background:var(--ln);border-top:1px solid var(--ln);margin-top:12px}
.mtiles{display:grid;grid-template-columns:1fr;gap:1px;background:var(--ln)}
.mtile{padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--sf)}
.mtile.off>*:not(.row:first-child){opacity:.6}
.mtile .row{display:flex;align-items:center;gap:10px}
@@ -788,6 +788,28 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.mtile ul b{margin-left:auto;font-weight:600;color:var(--tx)}
.mtiles .emptystate{background:var(--sf)}
/* Lists never change the page's size: a panel keeps its height and its
list scrolls inside, however many users, machines or orders there are. */
.scrollbox{overflow:auto;min-height:0}
.scrollbox thead th,.scrollin thead th{position:sticky;top:0;z-index:1;background:var(--sf)}
.scrollbox.people{height:366px}
.scrollbox.log{height:440px}
.paypanel{display:flex;flex-direction:column;height:calc(100vh - 72px - 24px - 36px - 20px - 40px);min-height:360px}
.paypanel .scrollbox{flex:1}
/* A list that takes the panel's leftover height and scrolls in it, without
making the row taller: the row's other panels set its height. */
.fill{position:relative;flex:1 1 auto;min-height:460px}
.fill.short{min-height:186px}
.fill>.mtiles,.fill>.scrollin{position:absolute;inset:0;overflow:auto;margin:0}
.fill>.mtiles{border-top:1px solid var(--ln);align-content:start}
.panel:has(> .fill){display:flex;flex-direction:column}
.cols2.lean{align-items:stretch}
/* The board fills the window; each column scrolls on its own, its head stays. */
#tab-board:not([hidden]){display:flex;flex-direction:column;height:calc(100vh - 72px)}
#tab-board .board{flex:1;min-height:0;align-items:stretch;overflow-y:hidden}
#tab-board .col{min-height:0;overflow-y:auto;padding-top:0;overscroll-behavior:contain}
#tab-board .colhead{position:sticky;top:0;z-index:3;background:var(--lane);margin:0 -8px;padding:14px 16px 8px}
/* Phone (redesign, step 8): the sections in a bar at the bottom, the
search behind a button, one stage of the board at a time, the order and
the dialogs over the whole screen. */
@@ -885,5 +907,11 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.tall{width:100%;max-height:60vh}
.plegend{margin-left:0;flex-basis:100%;order:3}
.mchoices{grid-template-columns:1fr}
#tab-board:not([hidden]){display:block;height:auto}
#tab-board .col{overflow:visible}
#tab-board .colhead{position:static;margin:0;padding:2px 2px 4px}
.scrollbox.people,.scrollbox.log,.paypanel{height:auto}
.fill{min-height:0}
.fill>.mtiles,.fill>.scrollin{position:static}
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}}