8000 Narrow layout: the Rail overlays the prose · Issue #69 · kiran-brahma/writing-tool · GitHub
[go: up one dir, main page]

Skip to content

Narrow layout: the Rail overlays the prose #69

Closed

Description

@kiran-brahma

Parent

#57 — Spec: Obelus v1.3, the page and the mark

What to build

Narrow layout. Below 1024px the Rail overlays the prose instead of squeezing it, so the page keeps its width. One media-query subscription gives wide; railPresentation(wide, collapsed, overlayOpen) returns docked, overlay or hidden. When wide, the stored collapsed preference decides; when narrow, only a local overlay-open flag, false on every load, decides — so a desktop preference never covers the prose. The Status line offers the Rail with the open-Finding count; the modifier step opens the overlay; Escape or a press outside closes it.

Stories 251–255.

Acceptance criteria

  • railPresentation is tested over the full table, including "narrow ignores collapsed".
  • At 768 and 1000px the prose keeps full width and the Rail opens over it from the Status line.
  • The overlay starts closed on every narrow load, whatever the stored preference.
  • The modifier step opens the overlay; Escape and a press outside close it.
  • Crossing 1024px switches between overlay and docked without reload.
  • Checked by eye in both schemes at 768, 1024 and 1440px.

Blocked by

Activity

  1. kiran-brahma commented on Sep 26, 2026

    @kiran-brahma
    OwnerAuthor

    Done in #87 (merged into v1.3). One matchMedia("(min-width: 1024px)") subscription gives wide; railPresentation(wide, collapsed, overlayOpen) is tested over the full table including "narrow ignores collapsed". Below 1024px the Rail overlays the prose, starts closed on every narrow load, opens from the Status line ("Rail · N open") or Alt+↓, and closes on Escape or a press outside; crossing 1024px switches without reload. Checked in headless Chromium at 768, 1000, 1024 and 1440px in both schemes.

    Judgement calls to review by eye: crossing to wide clears the overlay flag; the overlay runs full height, covering the right of the header and the Status line's Rail button while open.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentSpec is ready for an agent to implement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0