Repository navigation
fix(mobile): put the session tabs in the top bar on a landscape phone - #29070
Conversation
A sideways phone is about 390pt tall and the session header spent two rows on it. On a landscape phone the tab strip now shares the top bar with the back button, title and panel icons. Portrait and tablet layouts are unchanged.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
602eb1e9-4721-4bf5-8425-51a32a3dd8a2
📒 Files selected for processing: 5
mobile/src/layout/responsive-layout-metrics.test.tsmobile/src/layout/responsive-layout-metrics.tsmobile/src/session/MobileSessionHeader.tsxmobile/src/session/MobileSessionTabStrip.tsxmobile/src/session/mobile-session-frame-styles.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
In the landscape top bar the tabs sat between the title and the panel icons with nothing marking where one tab ended. Each tab now has a 1pt border on its sides, running the full height of the bar, and the active tab gets the raised fill, as the desktop tab strip draws them. The same strip is used in portrait, so both orientations match.
|
On a sideways phone, the session header used two rows while the middle of the top row was empty. This PR moves the tabs and their creation buttons into that space, keeping navigation and panel actions available. It adds full-height tab borders and an active fill, and leaves a 12pt gap between the session title and the fixed divider so a partially scrolled tab stays visibly separate from the title. Status: review loop done on
Intended differences: retain rotation support and the existing compact-window layout rule; share the approved tab borders and active fill across orientations; add the approved 12pt title-to-divider gap in landscape. For Brennan's review: the Visual Proof section contains before/after images for the SE at the start of the strip, a half-scrolled tab, a long title, 17 Pro landscape, and 17 Pro portrait. For the latest change, the human judgment is the approved spacing at mobile-session-frame-styles.ts:102. |
… top-bar tabs A short, narrow window (a ~390x350 web window) is wider than tall, so it counted as a landscape phone and moved the tabs into a top bar that has no width left for them. Top-bar tabs now also need at least 568pt of width, the narrowest landscape phone.
…o scrolled tabs never read as part of the title
ELI5
On a phone turned sideways, the session screen spent two rows on its header: the top bar (back, title, folder / branch / more), then the tab strip under it. A sideways phone is only about 390pt tall, so that was about a fifth of the screen, and the top bar's middle was empty. Now, on a sideways phone, the tabs sit in that empty middle of the top bar and the second row is gone.
What Changed
Mechanism:
MobileSessionHeader.tsxinto its ownMobileSessionTabStrip.tsx, preserving tab actions and keyboard handling.isLandscapePhoneflag inresponsive-layout-metrics.ts: wider than tall, not tablet-class (the same 600pt short-side rule the app already uses for tablets), and at least 568pt wide, so a short, narrow web window keeps two rows. The same code runs in the native app and in the web version of the session page, so both change.Why
A user in the community Discord asked for exactly this ("when phone is turned sideways … scoot the tabs up here. It's wasted space").
Alternatives considered:
Moving the strip keeps every control and costs no new state.
Linked Issue
No GitHub issue. Reported in the Orca community Discord ("For mobile app when phone is turned"). This is the first of five separate PRs from that thread.
Visual Proof
On a phone turned sideways, the session header goes from two rows to one, with the tabs in the top bar, a divider, and space before those tabs.
At the default text size, the iPhone 17 Pro landscape header is 100pt on main and 63pt on this PR, and portrait is 144pt on both; the iPhone SE landscape header is 82pt on main and 45pt on this PR; the crop's ink-to-divider gap is 14pt (28px at 2x), and the title frame ends 12pt (24px at 2x) before the divider.
Testing
responsive-layout-metrics.test.tscovers the new flag: a landscape phone gets it; a portrait phone, a landscape iPad and a short, narrow window don't.98c8b4c6ca5.Review
Review loop complete on
98c8b4c6ca5with no open findings; see the status comment on this PR. Earlier rounds found and fixed a selected tab disappearing from the strip after rotation (the replacement scrolling view now starts with fresh measurements) and the tab strip moving into the top bar of short, narrow web windows.Intended: keep existing rotation support, visible session tabs and all existing header actions; use the existing compact-canvas rule rather than physical device identity; share the approved full-height tab borders and active fill across orientations.
Agent skill upstream boundary
Notes
Checklist