Repository navigation
Trim first Ask heading at its frame edge - #1173
Merged
Merged
Conversation
leaf-agent
approved these changes
Sep 25, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 25, 2026
…im edges through bare wrappers (#1178) Three layout defects the blind arrangement comparison (#1172) found on Leaf pages, after #1171 made the page one kind. **A grid takes the column's width in a column page.** `lf-grid` no longer declares `x-space: "wide"`, so in a column page it lines up with the prose, as a paragraph does; `data-width="wide"` or `"available"` asks for more, as on a figure. On a wide page nothing changes. Tiles and figures running past the prose's right edge was the defect the judge named most on Leaf documents (7 of 12 judgments). At 720px a counted grid of plain cells fits three 224px tracks, so `columns="4"` of sections lays out three and one; a row of `lf-metric` tiles keeps four on the metric row's 9rem floor; `1fr 2fr` (stacks below 43.5rem = 696px) stays side by side. The registry entry and `page-authoring.md` "Composing a page" say so; the feature gallery's three charts take `data-width="wide"`. **A stacked workspace scrolls instead of splitting the window.** A root workspace holds the window from 720px, but its template grid stacks at its own width (`1fr 2.4fr` below ~786px). Between the two, the stacked panes shared the window height: at 820px the queue showed two tickets and the detail pane was cut off at its first fields. A stacked `lf-grid` now passes no held height on (`--lf-passes-hold: 0`), so its panes take their natural height and the page scrolls, as the workspace entry already promised. **A frame trims the edge margin through bare wrappers.** A frame trimmed its first and last child's margin, but a bare wrapper there (a section with no inset) passed its own first child's margin to the frame's edge, so a detail pane that wrapped each ticket in a section opened on a 48px empty band. The trim now follows the edge down through registered, non-inherited `--lf-edge-start` / `--lf-edge-end`. This replaces #1173's `lf-ask`-specific rule with the general one. Across the corpus 59 elements lose an edge margin, among them an Ask's options at the foot of a page (14px) and a first heading inside a wrapper at a frame's top. `notes/workspace-followups.md` drops the three findings from #19's follow-ups; the rail findings stay. The catalog stills are refreshed. Tests: `uv run pytest tests` and `npm run test:runtime` pass; pre-commit clean. Tests that measured a grid wider than the column now declare the width; the stacked-workspace and edge-trim cases have their own tests, and #1173's Ask tests pass on the general rule. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
An
lf-askat the start of a framed block let its heading's 48px top margin collapse through the boxless wrapper, adding empty space above the question. The Ask now reads the frame's existing--lf-block-framedeclaration and trims its first authored child's top margin only at that edge. Later Asks retain their normal separation.Rendered regression coverage checks a page opening, an authored frame, a live specimen, and a later Ask. Matched browser captures show the opening gap falling from 48px to 0px in both the page and the specimen.