You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web app: a narrow window offers Split right and Split down #228
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