Skip to content

Trim first Ask heading at its frame edge - #1173

Merged
max-sixty merged 3 commits into
mainfrom
codex/trim-first-ask-heading
Sep 25, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/trim-first-ask-heading

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

An lf-ask at 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-frame declaration 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.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 736e3ab into main Sep 25, 2026
5 checks passed
@max-sixty
max-sixty deleted the codex/trim-first-ask-heading branch September 25, 2026 17:27
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]>
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