Skip to content

Let sticking blocks flow in a window shorter than 480px - #3330

Merged
max-sixty merged 3 commits into
mainfrom
agent-affba8447a19c3c88
Oct 20, 2026
Merged

max-sixty merged 3 commits into
mainfrom
agent-affba8447a19c3c88

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Since #3274 a playground's rail sticks beside its stage, bounded to the window's height and scrolling what it holds. In a short window that bound leaves a few lines of the rail. At 844×390 data-explorer's workspace flows (below 480px tall), so its rail stuck at 252px, scrolled its 467px inside, and at the page's end stopped where the stage ends, cut mid-text, with "Build query" reachable only by scrolling inside the rail. Before #3274 the page scrolled down to it.

The shared "Sticking blocks" rule in layouts.css now applies only in a window at least 480px tall, the height below which a workspace already flows. Below it every sticking block (a column's margin sidebar, a sidebar page's track block, a widget's track) flows with its holder and the page scrolls to everything it holds. module-scroll-and-motion.md states the threshold for package authors, and a new leaf-dev stills state, playground-short-window, shows data-explorer at 844×390 scrolled to the page's end: the rail whole with its actions, where base cuts it.

Measured with leaf-dev probe (rail box / content height; submit at the page's end):

  • data-explorer 844×390: base sticky, 252 of 467, submit at 395–423, below the 390px window; now static, 467 of 467, submit at 181–209. The same under --touch and in Firefox.
  • data-explorer 1024×479: base sticky, 341 of 413; now static, submit at 270–298.
  • alert-thresholds 844×390 and 1024×479: base sticky and scrolling inside; now static, as before Keep a playground's rail in view beside a tall stage #3274.
  • 1024×500, 1280×600 and 1440×900 on both pages: unchanged.
  • Resizing alert-thresholds from 1024×520 to 1024×460 and back mid-stage keeps the alert being read at the same place. At 460, focusing the submit button scrolls the page to it (at 179–209), not the rail.

The gate costs a short block its sticking in a short window. pr-walkthrough's 59px track block and a 40px margin sidebar fit a 470px window, yet they now flow there. Keeping them would need a reading of whether each block fits its bound, which no CSS query gives. The same reading would decide alert-thresholds at 1024×500, where the rail still scrolls 581px within 380px, as #3274 accepted.

Behavior changes in tests: the notification playground's flowing workspace at 1100×300 scrolls the rail's controls and instruction in the page again, as before #3274. The alert playground's tall-stage test also checks that at 844×390 the page scrolls to the submit button without scrolling inside the rail. Both fail without the change.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 20, 2026 06:27
Since #3274 a playground's rail sticks beside its stage, bounded to the
window and scrolling what it holds. In a short window that bound left a
few lines of the rail: at 844x390, `data-explorer`'s workspace flows
(below 480px tall), so its rail stuck at 252px, scrolled its 467px
inside, and at the page's end stopped where the stage ends, cut mid-text
with "Build query" reachable only by scrolling inside the rail. Before
#3274 the page scrolled down to it.

The shared "Sticking blocks" rule now applies only in a window at least
480px tall, the height below which a workspace already flows. Below it
every sticking block (a column's margin sidebar, a sidebar page's track
block, a widget's track) flows with its holder, and the page scrolls to
all it holds. `module-scroll-and-motion.md` states the threshold for
package authors.

Measured with `leaf-dev probe`, rail box / content height, submit
position at the page's end:

- data-explorer 844x390: base sticky, 252 of 467, submit 395-423 below
  the 390px window; now static, 467 of 467, submit at 181-209.
- data-explorer 1024x479: base sticky, 341 of 413; now static, submit
  at 270-298.
- alert-thresholds 844x390 and 1024x479: base sticky and scrolling
  inside; now static, as before #3274.
- 1024x500, 1280x600, 1440x900 on both pages: unchanged. On
  alert-thresholds at 1024x500 the rail still scrolls its 581px within
  380px, as #3274 measured.
- Firefox at 844x390 and 1024x768 matches Chrome.
- pr-walkthrough's track block flows at 1024x470 and still sticks at
  1024x500.

Behavior changes in tests: the notification playground's flowing
workspace at 1100x300 scrolls the rail's controls and instruction in the
page again, as before #3274. The alert playground's tall-stage test now
also checks that at 844x390 the page scrolls to the submit button
without scrolling inside the rail. Both fail without the change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 200ae6c into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-affba8447a19c3c88 branch October 20, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants