This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(plugin-kanban): the swimlane region owns the vertical scroll, and the column header sticks (objectui#8449) - #8798
Merged
Conversation
…ectui#8449) A swimlane board's lane region carried `overflow-hidden` while being shrunk to the board's bounded height, so lanes below the fold were UNREACHABLE — not awkward to reach: no scroll affordance on the region, and `documentElement` did not scroll either. Measured in Chromium at 1600x1000 with three swimlanes: region `scrollHeight` 2104 against `clientHeight` 1000, two of three lanes lost. Ruled option A (comment 5597654059): the region scrolls (`overflow-y: auto`) and the column-header row sticks to the top of it. Option B (drop the height bound and let the page scroll) was refused on blast radius — it changes what the board promises every embedder — and option C (collapse lanes beyond the first N) was refused because it changes which content is hidden without making any of it reachable. The header sticks because objectui#8448 committed the board to one horizontal axis with exactly one header row; a frozen header over a vertically scrolling body is that same table model. `shrink-0` stays exactly as load-bearing as objectui#7303's pin says — `position: sticky` does not remove a box from flow — and the region takes the Y axis only, so objectui#8448's single horizontal axis is untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
…sticky header Browser-measured follow-up to the same fix, not a second change of direction. A scroll container's padding lives INSIDE its scrollport, so content scrolls through it: with `py-*` left on the region, the pinned header row stuck at `region.top + 16` and a 16px band of the previous lane's cards stayed visible ABOVE the frozen column titles (Chromium 1600x1000, screenshot in the PR). Moving the top padding onto the header row puts that band behind the row's own opaque background. Measured after: header delta 0 at rest and at the bottom of the scroll range, row height 40 (24 of content + its own `pt-4`), the title still winning its own hit test. The region keeps `pb-*`, which nothing scrolls past, and the `pl-*` indent objectui#7303's pin compares is untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
os-zhuang
marked this pull request as ready for review
September 9, 2026 09:04
os-zhuang
enabled auto-merge
September 9, 2026 09:04
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8449
Implements the ruling in comment 5597654059: option A — the swimlane region scrolls, and the column-header row sticks to the top of it.
What changed
packages/plugin-kanban/src/KanbanImpl.tsx, swimlane layout only, two class lists:py-3 sm:py-4 min-w-0 overflow-hiddenpb-3 sm:pb-4 min-w-0 overflow-x-hidden overflow-y-autoflex shrink-0 … pl-36 sm:pl-44 overflow-x-autoflex shrink-0 … pl-36 sm:pl-44 pt-3 sm:pt-4 overflow-x-auto sticky top-0 z-10 bg-backgroundThe region already had a bounded height and already zeroed its own automatic minimum size —
overflow-hiddenis a scroll container too. It was throwing the overflow away instead of offering it.overflow-y-autois the whole scroll fix;overflow-xstayshiddenso this does not become a second horizontal scroller competing with the one axis objectui#8448 settled.The
pt-*move is browser-measured, not taste. A scroll container's padding lives inside its scrollport, so content scrolls through it: withpy-*left on the region the pinned header stuck atregion.top + 16and a 16px band of the previous lane's cards stayed visible ABOVE the frozen titles. Carried onto the header row, that band is painted by the row's own opaque background. The region keepspb-*, which nothing scrolls past. Thepl-*indent objectui#7303's pin compares is untouched.The card's measurement, inverted — in a real browser
Chromium 1194 at 1600x1000, real Tailwind CSS, the real
object-kanbanboard mounted in a height-bounded pane (six swimlanes, five columns), driven withpage.mouse.wheelthrough the browser's input pipeline.element.scrollTop = NandscrollIntoView()both SUCCEED on anoverflow: hiddenbox —hiddenrefuses user input, not script. A first pass built on those reported "6/6 lanes reachable" on the broken build, i.e. the bug reported as fixed. Every reachability number below is wheel-driven.The control is the same page with the pre-fix CSS forced back on (
overflow: hiddenon the region,position: staticand no background on the header row), so each number is read twice off one DOM:⇒ acceptance met: with the lanes overflowing, a wheel reaches the full 475px of overflow and lanes 5 and 6 (
eve,fay) come into view; the column titles stay pinned at offset 0, at height 40 (not the height 0 objectui#7303 closed), opaque, and still winning their own hit test with lane cards passing behind them.objectui#7303's pin — the guard on this work, unweakened
Not touched, and deliberately re-read from the new pin:
position: stickydoes NOT remove a box from flow, so the header row is still a shrinkable-in-principle flex item that is also a scroll container, andshrink-0is still what keeps it out of the shrink pool. Ablation leg C below deletesshrink-0and reddens objectui#7303's pin and this PR's, together.Tests
New:
packages/plugin-kanban/src/__tests__/swimlaneVerticalScroll-8449.test.tsx(3 cases).scrollHeight,clientHeight,getBoundingClientRect()andposition: stickyare indistinguishable between the broken build, the fixed build, and a board that never rendered. No geometry is asserted there — that would be a pin that cannot fail. The geometry is the browser table above, exactly as objectui#7303's and objectui#8448's pins document for this surface. The file pins the class contract that DECIDES that geometry, as invariants rather than spellings: the region's effectiveoverflow-ymust be a scrolling value; the board root must still be height-bounded (dropping it is refused arm B arriving by the back door); the header row must be the region's first child, sticky, with an inset, with an opaque background, and still out of the shrink pool; and the region must NOT become a horizontal scroll container, with objectui#8448's propagation re-driven to prove the axis survived.Ablation — every pin proven able to fail. Each leg mutates the committed source, proves the mutation reached disk (old-anchor count to 0, new text present, on-disk blob hash printed), runs the pins, then restores from
HEADand proves the restore by blob hash plus an emptygit diff HEAD:Gates, all green, all read from the gate's own verdict line:
Read at
57d6f288a. Repo-wideturbo run lintand the full suite are CI's; the affected package's own lint and test units were run whole, not narrowed.Not in scope, deliberately
scrollLeftis 288 against the lane rows' 298 (the lane rows carrypx-2the header row does not). Scrolled fully right, the sync clamps at the header's smaller maximum and every title sits 9px off its column; 1px everywhere else in the range. Same family as objectui#8448, different cause, and objectui#8448's pin cannot see it because it asserts propagation, not range. Dedup was run and returned a lit reading (objectui#8449, bug(plugin-kanban): the swimlane column-header row and each lane row are independent horizontal scroll containers — past PR #8430 the labels sit over the WRONG columns #8448, Kanban swimlanes render the status column-header row at height 0 — the board loses its column labels #7303, Container-aware Kanban column sizing is wired to ONE call site — the swimlane layout never reads it and still paints the hard-codedw-[85vw]its own docblock says was replaced #8508 — every adjacent card, none of them this), not a zero.pl-36 sm:pl-44indent with nothing rendered in it is still there, still scrolling away with the content. Carried forward from objectui#8448 as out of scope, and it is the thing a sticky-lane-label change would want.验收备注
pt-4, and the content is still 24 — but anyone re-running that out-of-band measurement should expect the new number.z-10on the header row is defensive against dnd-kit's drag transforms painting over a sticky sibling. Not observed failing without it; it was not worth a mid-drag measurement to find out.🤖 Generated with Claude Code
https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH
Generated by Claude Code