Repository navigation
Restore full-height Ask layout under the package CSS scope - #1614
Merged
Merged
Conversation
The native default-package scope roots at lf-ask. An ancestor selector for main > lf-ask cannot match the scope root, leaving full-height workspace Asks in block flow. Select the scoped root directly; the existing three browser cases cover the ordinary, full-height, and multi-part layouts.
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
A workspace is meant to be a screen you work in, like a terminal: the window is the workspace's, the reader operates it rather than reading down it, and they see one item at a time instead of scrolling. This makes the layer behave that way, and it keeps three things apart while doing it: the Layout, the style, and the widgets. **The three axes.** The Layout (`layouts.css`) says only where boxes stand and how large they are. Style (the kernel `theme.css`) holds type, spacing and form as tokens under a class any block can take. Widgets and chrome read their own box's geometry and theme tokens, never which Layout holds them. **What changes** - **The workspace fills the window** (`layouts.css`). The 1600px cap and the wide page's growing gutter are gone: there's a 12px gutter and a header row as tall as its content. At 1920×1080, alert-review's panes go from 1,472px across to 1,894px. The workspace leaves the wide-page rule altogether, and its title is the theme's `h1`. - **Panes as splits** (`layouts.css`). A page's grid of panes is one frame. Each pane draws a 1px ring in place of its own border and corners, so neighbours meet at a single hairline in the grid's 1px gap. The Layout now owns how panes meet, so the examples, fixtures, test harness and authoring samples no longer write their own `gap`. - **Working density is a style** (`theme.css`). - `.density-working` restates the type ladder, the spacing scale, the flow margins, the pane insets and the key-badge size for any block that takes the class. - It also sets `--lf-density: working`. Pane insets are now tokens (`--pane-bar-pad`, `--pane-inset`), so the zero-specificity pane rules stay at zero specificity and a package's own pane padding still wins. - The workspace examples, the authoring template, the docs sample, and the playground and visual-review templates write `class="layout-workspace density-working"`. - **Options as rows** (default package). `lf-options` reads `--lf-density` with a style query: at working density a titled option is one row, title then consequence, with chips at the end. Each form sits under its own predicate. On alert-review an option goes from 115px to 43px tall. - **One item at a time.** - `examples/alert-review.html` stacked fourteen alerts in one scrolling pane. It is now one `lf-tabs list="side"`, the queue form the authoring guide already prescribes. - The render gate's advice for an overflowing workspace region now counts the open Asks the region shows (a queue's closed tabs don't count). With two or more, it names the side-list queue instead of saying to trim. - **Asks in a workspace keep block flow.** Since #1614, the full-height Ask rule matched every Ask in a workspace, because `--lf-full-height` inherits, and it collapsed alert-review's options to 2px. The rule now matches only an Ask that is `main`'s own body. This removes three xfails main carried for that bug: alert-review's render gate, the side-list queue's pointer press, and an answered card's badge seats. **Tests and evals** - **Tests.** Two tests had asserted the old frame. - The root-workspace test now checks that the workspace is wider than the wide page's frame, and that its header stays one row. - The test that a pane beside the standing rail pins its rows is deleted. A workspace now fills the window, so no rail stands beside one. - The overflow-advice test gains a stacked-queue case, and it fails with the queue advice disabled. - The published-workspace site test reads each region the workspace scrolls (a pane's body, or the body itself), since alert-review's body is now a queue with no pane. - The visual review's link mark is held to its link's text size rather than to 12px, which working density's smaller links no longer reach. - **Eval.** `workspace-header-is-one-row` gains a `takes-working-density` assertion. Scored against main (one run per host and arm): `takes-working-density` fails on main and passes on the branch on both Claude Code and Codex, and every other assertion in that case passes on both arms. `queue-is-a-side-list` passes on all four arms. `workspace-stacks-where-the-layout-flows` fails its judgment on Codex in both arms and passes on Claude Code in both, so it is unchanged. The catalog previews are refreshed for the uncapped workspaces. Not in this PR: the column's margin rules (sidebar, sidenotes, contents map) are Layout geometry that still sits in the kernel `theme.css`, and the wide pages' larger title is still set in `layouts.css`. > _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.
The default package's native CSS scope roots at
lf-ask, so itsmain > lf-askselector cannot style that root. Full-height workspace Asks consequently stayed in block flow. Select the scope root directly for the full-height layout and its answer child. This restores the layout without changing ordinary document-flow Asks.The failed main run reported this in
test_an_ordinary_two_part_ask_retains_document_flowand two related workspace tests. Those three focused browser cases failed on main and pass with this change. The run has other failures with separate causes; this PR addresses the scoped Ask layout only. Refs #1592.