Repository navigation
fix(mobile): start a lone pane's banners below its menu - #1784
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
|
Merge-pass review of 04f186c, by a gate reviewer on a different model than the author's. The fix works. These all pass:
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. |
|
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. |
|
Merge pass: the one finding is resolved. The PR description now names its design precedent, as Gate review of 04f186c (reviewer on a different model than the author's):
All required checks are green and no review thread is open. |
…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]>
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.cssuses 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 owndisplay: nonerules. 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.tsgets a view-only case: it turns the demo connection into an observer (role: observe, asmirror-scroll-demo-regression.tsdoes) and asserts: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 fastpasses: 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.