Skip to content

web app: a narrow window offers Split right and Split down #228

Closed

Description

@frostyard-machines

What

In a narrow window (below 600 CSS pixels), More options in the view header offers Split right and Split down, and the commands workspace:split-vertical and workspace:split-horizontal run. docs/specs/ui.md, Narrow windows says: "other groups stay in the stored workspace, undrawn, and the split commands do not apply."

A narrow window draws only the active group's active tab, so a split there changes the stored workspace and shows nothing.

Where

  • app/src/app/menus.ts, openMoreOptions: pushes split-right and split-down for every view. The narrow view header calls it (app/src/app/WorkspaceView.tsx, NarrowHeader's onMore).
  • app/src/app/commands.ts: the 2 split commands have no applies check for a narrow window, so the command palette offers them too.

Done when

  • In a narrow window, More options has no split items, and the command palette does not list the split commands (an applies that is false while useNarrow/NARROW_QUERY matches).
  • A Vitest test covers both, and make ui-check is green.

Found while checking the leftovers of plan 0006 (Phase 5) against main at 851670a.

Activity

  1. added
    bug
    on Nov 13, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions