Repository navigation
Narrow layout: the Rail overlays the prose - #87
Merged
Merged
Conversation
Below 1024px the Rail overlays the prose instead of squeezing it, so the page keeps its full width. One matchMedia subscription gives `wide`, and railPresentation(wide, collapsed, overlayOpen) returns docked, overlay or hidden: when wide the stored collapsed preference decides; when narrow only a local overlay flag, false on every load and never stored, decides. The Status line offers the Rail with the open-Finding count below 1024px; the modifier step opens the overlay; Escape or a press outside closes it. Crossing 1024px switches between overlay and docked without reload. Stories 251-255. Part of #57. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FjB3Gu8vhg5enkAneTdqga
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Sep 26, 2026
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.
Part of #57. Closes #69.
What changed
src/editor/railPresentation.ts: the purerailPresentation(wide, collapsed, overlayOpen), which returnsdocked|overlay|hidden, plusWIDE_LAYOUT_QUERY = "(min-width: 1024px)". It has a full-table test, including "narrow ignores collapsed".src/editor/useWideLayout.ts: the onematchMediasubscription that giveswide.App.tsx: a localoverlayOpenflag. It is false on load, never stored, and cleared when the window crosses to wide.showRailandhideRailwrite the stored preference when wide and the local flag when narrow. The only other App changes are the Rail's presentation props and the Status line's Rail offer.WorkingOrderRail.tsx:fixedover the prose.StatusLine.tsx/statusLine.ts: below 1024px the Status line offers the Rail asRail · N open(railOfferLabel, tested). It is a toggle witharia-expandedandaria-controls.CONTEXT.md: the Rail entry notes that below 1024px it overlays the prose.Acceptance criteria
railPresentationis tested over the full table, including "narrow ignores collapsed". Verified (src/editor/railPresentation.test.ts).mainwidth equals the viewport width with the overlay both closed and open, the aside isposition: fixed, and there is no horizontal scroll.prefers-color-scheme), including the focus ring on the Status line's offer.Checks
pnpm test(1101 passed),pnpm typecheck,pnpm run gatesandpnpm buildall pass.Notes
overlayOpenwhen the window crosses to wide is my reading of "a desktop preference never covers the prose". Without it, narrowing the window again would reopen the overlay.🤖 Generated with Claude Code
Generated by Claude Code