Skip to content

Studio: Esc skips a list that isn't drawn over the map, and the top bar keeps its buttons in a narrow window #1047

Done

Description

@danielrispler

Parent

#1036

What to build

Root cause 3 of #1036: behaviour and layout follow what shows.

  • Esc. The Dismiss action treats the list as overlaid only when list-open or list-peek is on the body and the layout is not the full one, which is the stylesheet's own condition for drawing the overlay. The decision is a small pure function beside the layout helpers. The hover still toggles list-peek at every width.
  • Top bar. Its text items (the project name, the install hint's sentence, the connection line, the port line) shrink and end in "…". Its buttons (Install and its ×, Reload, Needs you, Settings) never shrink. It stays one line, with no overflow menu.
  • Snap sizes. Today snap:all sizes a fixture by its name's suffix, with nothing under 1000 px. It gains two suffixes: …Phone (390×800) and …Small (640×800).

Acceptance criteria

  • ui/tests/layout.test.mjs gains a table of the overlay decision by body classes and layout.
  • A new snap fixture (real pointer and keys) covers Esc:
    • in the full layout, open a story from a list row, leave the pointer on the list, and press Esc once: the left panel is closed;
    • in a …Narrow fixture (the strip layout), the first Esc closes the list overlay, as today.
  • New snap fixtures cover the top bar, named …Phone, …Small and …Narrow: with the install hint and Needs you showing, every top-bar button lies wholly inside the window and is the element at its own centre.
  • npm run check passes, and the new fixtures pass npm run snap locally at their sizes.

Reading

Touches

  • Files: ui/main.ts, ui/layout.ts, ui/style.css, ui/tests/layout.test.mjs, scripts/snap/all.mjs, scripts/snap/fixtures-page.ts, scripts/snap/fixtures.ts
  • Session: auto mode
  • Route: medium · effort medium — a settled key-handler condition tested as a pure table, top-bar CSS, and two snap sizes; presentational

Activity

  1. added
    ready-for-agent
    on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. danielrispler commented on Dec 1, 2026

    @danielrispler
    OwnerAuthor

    Implemented on the integration branch, PR #1051.

    Route outcome: medium·medium claude/sonnet → pass | 9m

  4. added a commit that references this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions