Repository navigation
The Outline in the left margin on wide screens - #88
Merged
Merged
Conversation
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. |
At 1440px and wider the Outline sits in the left margin the capped column leaves empty, as a quiet list of headings held in view while the prose scrolls; below that width it stays in the Rail's Reference strip. Both render and one stylesheet breakpoint shows one, so resizing swaps them without a reload and no script decides the placement. Both placements draw their rows from outlineEntries, so they mark the same current Section and jump to the same heading block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FjB3Gu8vhg5enkAneTdqga
kiran-brahma
force-pushed
the
v1.3-67
branch
from
September 26, 2026 10:42
d484df6 to
254c3ef
Compare
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 #67.
What changed
DocumentEditortakes aleftMarginslot. It renders beside the column and is laid out entirely by CSS (.obelus-left-margininsrc/index.css). It is hidden below 1440px. At 1440px and wider it is absolutely placed in the margin the capped column leaves empty ((100% - 41rem) / 2), and its body is sticky, so the Outline stays in view while the prose scrolls.MarginOutline(inOutlinePanel.tsx) is the quiet margin list: a small "Outline" label, then the headings nested by level. The current Section gets an ink left rule, the same treatment the Rail mode tabs use. Existing colour names only, and the standard focus ring..obelus-rail-outline, which the same breakpoint hides at 1440px and wider. The strip's toggle then reads "Show metrics" instead of "Show outline and metrics".outlineEntries(sections, currentHeadingBlockIndex)is a pure function both placements draw from, so they mark the same Section and jump to the same heading block. It is tested insrc/editor/outlineEntries.test.ts: document order, current-Section marking on the heading and in the body, the preamble marking nothing, and a Document with no headings.matchMedia.Not touched: colour tokens, highlight rules, the Dexie schema, the findings schema, prompts, Worker routes.
Acceptance criteria
pnpm dev, reading the computed display at 1024, 1439, 1440 and 1920px. At 1439 only the Rail Outline shows; at 1440 only the margin Outline shows.aria-current). At 1024, clicking "Opening" in the Rail Outline moved the caret and the mark to Opening.The spec's Testing Decisions also mention 375px. I did not check that width: layout below 1024px belongs to #69, and this change only matters at 1440px and up.
Checks
pnpm test(81 files, 1094 tests),pnpm typecheck,pnpm run gatesandpnpm buildall pass.🤖 Generated with Claude Code
Generated by Claude Code