Skip to content

fix(mobile): start a lone pane's banners below its menu - #1784

Merged
devswha merged 1 commit into
mainfrom
fix/lone-pane-banner-overlap
Oct 23, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/lone-pane-banner-overlap

Conversation

@devswha

@devswha devswha commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Change

Fixes #1781. A lone pane's ⋯ menu (.pane-frame.is-single > .pane-frame-head) and the pane's banner column (.terminal-banners, e.g. "View only") shared the pane's top-right corner. The banner sat one layer above and covered the menu. This happens wherever the lone pane's head shows: a finger's screen, with no tab row carrying the pane's actions and no find bar. That includes a short phone's terminal lens on main, and since #1778 the chat under the glass header as well.

The banner column now starts below the head wherever the head is shown. The rule in src/components/PaneCanvas.css uses the complement of the existing mouse-only hiding rule ((hover: none), (pointer: coarse), (pointer: none), (any-pointer: coarse)) and the same tab-row and find-bar exclusions as the head's own display: none rules. Desktop with a mouse, tablets with a tab row, and split panes are unchanged.

Starting the banners below the head keeps their width logic unchanged, rather than reserving room beside it. DESIGN.md's lone-pane paragraph now says so.

Design precedent. This follows the iPhone navigation bar, as in the Claude iOS app, which the glass header already models and which DESIGN.md's lone-pane paragraph cites. The bar's overflow button comes first, and the content's status (here the banner column) starts below it, never on top of it. It also reuses the repo's own rules for when that ellipsis shows: the media query is the complement of the existing mouse-only hiding rule in PaneCanvas.css, and the selector repeats the head's tab-row and find-bar exclusions.

This follows up the merge-pass hold on #1778, which merged before this fix was pushed to its branch.

Validation

  • scripts/phone-glass-header-demo-regression.ts gets a view-only case: it turns the demo connection into an observer (role: observe, as mirror-scroll-demo-regression.ts does) and asserts:

    • no visible banner overlaps the lone pane's menu;
    • a press at the menu's centre lands on it.

    On main it fails with the banner "View only" {"x":292,"y":92,...} covers the lone pane's menu {"x":338,"y":84,...}; with this change it passes.

  • bun run check fast passes: workflow syntax, generated types and themes, typecheck, build, and 6258 unit tests with 0 failures.

  • A gate reviewer (different model) approved the same diff before it moved to this branch.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 28c7c8b and 04f186c.

📒 Files selected for processing: 4
  • DESIGN.md
  • changelog.d/lone-pane-banners-below-menu.md
  • scripts/phone-glass-header-demo-regression.ts
  • src/components/PaneCanvas.css

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • On phones and other touch-oriented screens, banners in a lone pane now appear below the menu button instead of covering it. This includes the “View only” banner, which no longer obstructs the menu or its touch target.

On touch-oriented layouts, lone-pane banners now start below the visible menu’s touch target. The demo regression checks the view-only banner’s position and whether a press at the menu center reaches the menu.

Changes: Lone-pane layout

Layer / File(s) Summary
Touch banner offset
src/components/PaneCanvas.css, DESIGN.md, changelog.d/lone-pane-banners-below-menu.md
A media rule positions the lone-pane banner column below the header offset and touch target on non-hover or coarse/no-pointer devices. The design text and changelog describe the placement.
View-only banner regression
scripts/phone-glass-header-demo-regression.ts
The script records demo WebSocket connections, sends an observe-role message, and checks banner overlap and menu hit testing.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related issues

Possibly related PRs

  • devswha/ovis#1778 — Positions the lone-pane menu below the phone’s glass header; this PR adjusts banner placement relative to that menu.
Merge Risk: ⚪ Minimal · up to 04f18

The banner placement change and its View only regression check are ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: placing a lone pane’s banners below its menu on mobile.
Linked Issues check Passed #1781 requires the View only banner not to cover a lone pane’s menu wherever the menu is visible, and it requests a view-only regression case. PaneCanvas.css moves .terminal-banners below the touc…
Out of Scope Changes check Passed The CSS change, observer regression case, changelog entry, and DESIGN.md update all support the #1781 fix. The changes stay within the linked issue’s scope.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (3 skipped: 3 …
Description check Passed The pull request includes the required Change and Validation sections. It identifies issue #1781, explains the resulting behavior, documents affected and unaffected layouts, and reports relevant regre…
Full details: Linked Issues check

Explanation

#1781 requires the View only banner not to cover a lone pane’s menu wherever the menu is visible, and it requests a view-only regression case. PaneCanvas.css moves .terminal-banners below the touch menu when the lone pane has no tab-strip menu or find bar. The condition matches the menu’s visibility rules. The regression script sets the connection to observe mode and checks banner overlap and menu hit-testing.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (3 skipped: 3 unsupported.)

Full details: Description check

Explanation

The pull request includes the required Change and Validation sections. It identifies issue #1781, explains the resulting behavior, documents affected and unaffected layouts, and reports relevant regression and validation results. No HTTP or WebSocket product change requires contract-test coverage.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Merge-pass review of 04f186c, by a gate reviewer on a different model than the author's.

The fix works. These all pass:

  • the 22 targeted tests;
  • the typecheck and the generated-theme check;
  • the build;
  • the phone regression's new view-only case.

The reviewer looked at the demo screenshot, and "View only" now sits below the lone pane's ⋯. The banners move down exactly when the head shows: a finger's screen, no tab row, no find bar. On a mouse desktop, the head revealed by keyboard focus overlaps the banners exactly as it does on main, so that isn't a regression. The new case waits on real signals, with no fixed sleeps.

One thing before merge. src/AGENTS.md says a UI fix names the design it follows (or why it differs) "in the PR and in the change's DESIGN.md entry". The DESIGN.md paragraph already cites the iPhone navigation bar and the Claude iOS app, but the PR description names no precedent. Add a line to the description, for example: "Follows the iPhone navigation bar (and the Claude iOS app): the bar's overflow button comes first and the content's status starts below it." That's an edit to the description only, with no commit and no CI re-run. Once it's in and the checks are green, this merges.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Re: merge-pass review. The description now has a Design precedent paragraph. It names the iPhone navigation bar (as in the Claude iOS app): the bar's overflow button first, the content's status below it. It also names the existing mouse-only hiding rule the media query complements. Only the description changed; no commit.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Merge pass: the one finding is resolved. The PR description now names its design precedent, as src/AGENTS.md asks: the iPhone navigation bar, as in the Claude iOS app. DESIGN.md's lone-pane paragraph already cites the same precedent. Only the description changed; the head commit is still 04f186c.

Gate review of 04f186c (reviewer on a different model than the author's):

  • Checks: 22 targeted tests, the typecheck, the generated-theme check and the build all pass, and so does the phone regression's new view-only case.
  • Screenshot: the demo screenshot shows "View only" below the lone pane's ⋯.
  • Selector scope: the banner column moves down exactly when the head shows: a finger's screen, with no tab row and no find bar.
  • Keyboard focus: on a mouse desktop, a head revealed by keyboard focus overlaps the banners the same way it does on main, so that is not a regression.
  • Test timing: the new case waits on real signals, with no fixed sleeps.

All required checks are green and no review thread is open.

@devswha
devswha merged commit 0bc6691 into main Oct 23, 2026
9 checks passed
@devswha
devswha deleted the fix/lone-pane-banner-overlap branch October 23, 2026 23:05
devswha added a commit that referenced this pull request Nov 4, 2026
…2622)

hello ovis has been super useful for me and i am grateful for
maintainer's work on it
hoping to contribute an improvement on compactness for small displays:

the tab bar occupies high vertical space percentage on smaller screens
like the external screen on iphone duo which is above the existing 600px
density cutoff

proposing to hide the tab bar when there is only one tab on displays
below 700px to optimize space when this bar occupies ~8% of usable
vertical space excluding safe areas that could be redirected to
additional chat/terminal text lines instead


worked on this with opencode and gpt 5.6sol

## Change

A workspace's only tab row now steps out on compact-height phone
viewports up to 700px tall, instead of only up to 600px. This includes
the iPhone Duo's 466x678-point outer display and recovers the row's 44px
for the chat or terminal. A regular 390x844 phone still keeps the row,
and two or more tabs keep it at every height.

When the row is absent, the lone pane draws no overflow button of its
own; the header's More menu carries the pane's and the tab's actions
instead (see Maintainer changes below). The phone glass-header browser
regression now checks the Duo outer size before returning to the
regular-height and keyboard-open cases, and the media query has a
focused unit test.

Design reference: this extends the compact-height behavior introduced in
#747 and hardened in #1778/#1784. It follows Apple's iPhone Duo
outer-display guidance to preserve vertical content room rather than
adding a device-specific check; `DESIGN.md` records that precedent.

## Before and after

Both captures use the demo's fictional **Idempotent payments** workload
at the iPhone Duo outer-display size: **466×678 CSS points at 3×
(1398×2034 pixels)**. They use the same pane with one tab and the
keyboard closed; no live herdr session or user data was captured.

| Before: 600px cutoff | After: 700px cutoff |
| --- | --- |
| <img
src="https://raw.githubusercontent.com/davidgamero/ovis/7bd62184/.github/pr-evidence/2622-before.png"
width="390" alt="Before: the fictional Idempotent payments chat on a
simulated iPhone Duo outer display, with a single-tab row taking space
below the header"> | <img
src="https://raw.githubusercontent.com/davidgamero/ovis/7bd62184/.github/pr-evidence/2622-after.png"
width="390" alt="After: the same fictional chat and display with the
redundant single-tab row hidden and more conversation visible"> |

### With the on-screen keyboard open

This second comparison keeps the Duo's 466×678 layout viewport and
simulates iOS reducing only the visual viewport to **466×360** while the
message field is focused. Headless Chromium cannot draw Apple's native
keyboard, so the images honestly show only the app area above it. In
this state the 44px tab row takes **12.2% of the visible app height**.

| Before: app area above keyboard | After: app area above keyboard |
| --- | --- |
| <img
src="https://raw.githubusercontent.com/davidgamero/ovis/0d8f7300/.github/pr-evidence/2622-before-keyboard.png"
width="390" alt="Before with a simulated on-screen keyboard: the
single-tab row uses part of the short app area above the keyboard"> |
<img
src="https://raw.githubusercontent.com/davidgamero/ovis/0d8f7300/.github/pr-evidence/2622-after-keyboard.png"
width="390" alt="After with a simulated on-screen keyboard: the tab row
is absent and another workload line fits above the composer"> |

## Validation

- `bun test src/lib/paneCanvas.test.ts`: 8 pass, 0 fail.
- `bun scripts/phone-glass-header-demo-regression.ts`: PASS at 466x678,
390x844 and the existing 390x470 keyboard case; the view-only
banner/menu overlap case also passes.
- `bun scripts/tab-menu-regression.ts`: PASS at 390x844 and the narrow
regular-height 320x720 case.
- `git diff --check`: pass.
- `bun run check fast`: generated types/themes, typecheck and build
pass. The macOS unit lane did not pass in this checkout: unrelated
Git-signing/temp-repository, BSD `tar`, SQLite/WAL and loopback-relay
tests failed or timed out. The changed unit test passes separately as
above. CI still needs to run the complete isolated suite.
- Skipped locally: Integration and browser lanes other than the focused
regression; native Windows.

## Maintainer changes

Pushed on this branch by the maintainers after review (no force push):

- With the row hidden, the lone pane no longer draws its own `⋯` below
the glass header. The header's **More** menu carries, after a divider, a
split tab's panes, the pane's actions (Rename pane, Clear pane name,
Close pane, Unzoom when zoomed) and the row's tab actions: **New
terminal**, **New tab with agent…** and **Rename tab**. Where the row is
drawn nothing changes.
- **Rename tab** opens a dialog in place of the row's inline field; the
palette's Rename tab and its shortcut open it too while the row is
hidden.
- Move to workspace and Close tab without the row are follow-up #2675.
- Tests: `PaneCanvas.appLayout.test.tsx` and
`CommandPalette.appLayout.test.tsx` cover the hidden-row menu, the
missing pane head and the palette entry;
`phone-glass-header-demo-regression.ts` checks the header menu at
466x678 and with the keyboard up, runs New tab with agent… and Rename
tab (menu and palette), and checks nothing changes at 390x844.
- Validation at db44d1f: `bun run check fast` passed (unit 10950 pass /
0 fail); omo review CLEAR, Codex review no HIGH.

---------

Co-authored-by: devswha <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal: the View only badge can cover a lone pane's ⋯ menu

1 participant