Repository navigation
Keep a page of parts' foot room inside the open part - #3394
Conversation
The floating panel's row keeps its room at the window's foot as the body's bottom padding, outside every box. A page of parts draws a column and a rule beside the open part, and both ended where main ended, so the room showed as a band below the column and across the part that belonged to neither; a focus ring on the part, or a comment target on main, outlined it. The room is now the open part's own end: the body keeps none on a page of parts, main fills the window below the head room, and the open part pads its end by the room. The column's list reaches the window's foot and keeps the room inside its scroll, so its last name still clears the row where a narrow window puts the row over the column. A workspace part still ends above the row; the two tests that measured it against main's foot now measure it against the part's padding and the window's foot. notes/browser-support.md records why the column bounces with the page at the end of a fling in Firefox (bug 1772626: a stuck sticky box takes the overscroll) and why `position: fixed` and `overscroll-behavior` were not used to stop it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The list of parts now runs to the window's foot, so a name the keyboard moved to the list's end landed at that foot, under the floating panel's row in a window narrow enough to put the row over the column (800x500: Summary at y457-493 under the row at y442). The list's padding gave its scroll the room but not its landing band. It now keeps the foot's room in `scroll-padding-block-end` too, as the root does, and a test presses End in that window and checks the last name stands above the row. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The new keyboard landing test fails at its stated 800×500 viewport. In the browser test environment, the title ends at y=408; the list's 120 px minimum height extends to y=528, below the window. After End focuses Summary, its bottom is y=449 while the floating row begins at y=442. The extra scroll padding cannot clear a row that overlaps the usable part of this short list. Please make the list and title layout handle this height so the focused name clears the row, then keep the test as the guard for that behavior.
The title's height follows the host's fonts: in CI it ends at y=408 of an 800x500 window, leaving 34 px above the floating row, less than one part name, so no landing could clear the row. The window now leaves the list 100 px above the row under its title on every host. The test still fails without the list's scroll padding. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The CI failure came from the test's geometry, not the layout. In CI's fonts the title ends at y=408 of the 800×500 window, so 34 px stand between the title and the row at y=442, less than one part name (36 px). No layout of the list can land a name above the row there; on A title tall enough to fill a short window is a limit of the sticking title itself, which this change leaves as it was.
|
…indow (#6688) The page keeps no room for the floating panel: it lays out in the whole window, the panel stands over it, and the user folds the panel with `.` where it covers something. Until now the page kept a 72px band (`--lf-foot-room`) across the window's whole width at the end of every scroller and below every window-sized box, through about eleven rules (body and part padding, `--lf-end-room` threaded through workspace regions, tabs, panes and the file editor, sticky tracks, the trace stage, a landing trim, the `under-panel` render refusal), and it kept needing patches (#3394, #3619, #5969, #6555, #6671). Max asked whether the page could know nothing about the panel; this is that change, which he picked over keeping the band, on the decision page in his session. What still counts the panel is Leaf's own placement: the root's landing band still ends above the panel's band, and an inner scroller the page can't carry, held in a full-window workspace or stuck, now ends its band there too wherever the panel stands across the destination's columns (`landingBand(scroller, across)`), in place of the band each pane kept in its padding. The panel no longer writes the root's `scroll-padding-bottom`, since a band across the whole window made a Tab onto a stuck sidebar link beside the panel scroll the page 340px. A Layout's end padding adds the safe area at the window's foot. Landings also stop scrolling the page past how far it can still carry a scroller (`pageCarry`, geometry.js), so a stuck tab side list's open item stays in the window. Four faults the missing band exposed are fixed where they live: an empty visual-review discussion now lays out where its comment box would stand, so the box takes that seat only where the panel leaves it in sight, rather than opening under the panel's row and jumping between its two seats every 70ms; a comment box the user sees no longer moves to a seat outside the window, which took the draft out of sight when a review's window widened from a phone's width; and a file tree no longer reveals a row the user pressed, which moved the row from under the pointer before mouseup so the click opened nothing (main does this too with a real mouse); and a Tab's landing above the panel, which waits for the next frame, now runs first when a key comes before that frame, so Enter on a link Tab left under the panel follows the link rather than letting go of focus (`landing-scroll.js`). To weigh: where content ends flush with the window's foot under the panel's 540px, the row covers its last 44px until folded (4 of 27 examples at 1728×999, 1 on a phone; 1 on main), and Tab onto a control there, as at the end of a long tab side list, leaves focus out of sight; the browser's own reveals (find, a page field's caret) no longer stop above the panel; and in a visual review that fills the window, the comment box opens over the case's head, covering its help button, rather than in its discussion. Tests: the runs of every tier before last, on this branch (https://github.com/max-sixty/leaf/actions/runs/45015279476) and on main (https://github.com/max-sixty/leaf/actions/runs/45015281683), failed four tests on the branch alone, each only some of the time, and each now has a fix here: the Tab landing above; the aim sweep lets the page's scroll carry a margin marker Leaf anchors to the page (`carriersOf`, now on the check API); the stale-keys sweep shows a sample frame below the window before reading, as a check does; and the file-pick test waits for the page's scroll to start, which fails on main too. All four passed in the last runs (https://github.com/max-sixty/leaf/actions/runs/45044731101, branch; https://github.com/max-sixty/leaf/actions/runs/45044712114, main). Those failed two others on the branch alone on Linux: the drawing test, which #6718 fixes and this branch now holds, and the trace journey, whose `hover` scrolled the page 9px now that the root keeps no scroll padding, which the shift watch misread (#6763, now on main, fixes the watch); the journey now points without scrolling and passes 8 of 8 copies at 4× CPU throttle. Seven more failed once each on the branch's macOS job alone, as eight did on main's; rerun locally at 4× throttle, four fail on main as well and three on neither. The latest runs, with #6718 in (https://github.com/max-sixty/leaf/actions/runs/45073644131, branch; https://github.com/max-sixty/leaf/actions/runs/45073646401, main), failed nothing on Linux that main didn't. Six tests failed on the branch's macOS job alone: - two journeys whose announcements #6702 reworded on main, which fail on main's Linux job too; - a shift-watch teardown of the kind #6763 fixes; - the removal test, which fails on main too at 4× CPU throttle; - the pane pin and comment-box return tests, which passed all 12 local copies, 6 on each tree, both plain and at 4× throttle. Since those runs started, main gained #6720, #6739, #6756 and #6763, which this branch now holds; in `seatFab` it keeps #6739's rule that a seat is judged only as the box moves in, judged by this branch's rules. Their new tests, with this branch's visual-review, card-growth and trace tests, pass on that merge here. Locally the changed tests, the drawing tests, `pnpm run test:runtime` and `pnpm run check:browser` pass on the merge of today's main; the focus-ring sweep fails on `review-a-fix` on main and here alike. > _This was written by Claude Code on behalf of max-sixty_
A page of parts showed an empty 72 px band under its column of parts and the rule beside the open part. The band was the body's
padding-bottom(--lf-foot-room), the room every live page keeps so its last line scrolls clear of the floating panel's row. It sits outsidemain, so the sticky column and the part's rule both stopped 72 px above the window's foot.On a page of parts the body now keeps no foot room, and the open part pads its own end by
--lf-foot-roominstead. The page scrolls exactly as far as before and its last line stops in the same place, while the column and rule run to the window's foot.main's minimum height is now the window less the head room. A workspace part still ends above the row.The list of parts keeps the same room inside its own scroll (
padding-block-endplusscroll-padding-block-end), so its last name clears the row in a window short enough to put the row over the column, including when End moves focus there.test_the_list_of_parts_lands_its_last_name_above_the_floating_rowcovers that in a window sized from the title's measured height, which follows the host's fonts, to leave the list 100 px above the row; it fails without the scroll padding.The column also moves with the window's rubber band in Firefox. That is Firefox bug 1772626: Firefox keeps fixed boxes still during overscroll but moves stuck sticky ones, against the CSSWG resolution in csswg-drafts#6299. This change leaves the bounce alone and records the gap in
notes/browser-support.md, with the two rejected alternatives: aposition: fixedcolumn (the runtime's reading-place model knows only stuck sticky boxes, and a part reopened at its start) andoverscroll-behavior-y: none(it removes the end-of-page bounce in every browser).Tests: two tests that measured a workspace part against
main's bottom now measure it against the window's. The parts, foot, ring and render tests pass in Chromium.