Repository navigation
fix(mobile): one button style for the session header and tab strip; size tabs to titles - #29222
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.
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.
…ize tabs to titles The header had three button sizes and the new-tab and quick-commands buttons were bare 16pt glyphs in a 40x36 area with no extra touch room, so "+" was hard to hit. Every header and tab-strip button now uses the same 36pt rounded button with an 18pt icon and a 44pt touch area. Tabs size to their titles (44 to 128pt) instead of a fixed 128pt, the strip row is 44pt, terminal tabs get a terminal icon, and tabs expose the tab role and selected state to screen readers.
…ssion-tabs' into brennanb2025/mobile-session-header-buttons
|
Phone users reported crowded session tabs and difficulty tapping New tab. Fixed-width tabs wasted space, and separate button styles gave actions different sizes. This PR gives header and tab-strip actions one appearance with separate 44pt touch areas, fits tabs to their titles, and keeps long tab titles bounded. Status: full review loop done; ready to merge on
The approved shared button appearance, numeric sizes and existing horizontal tab strip are intended. No saved data, host messages or session actions changed. For Brennan’s review: main-versus-branch screenshots cover the changed flows. The two visual judgment points are the shared button touch slots and title-sized tabs. |
…andscape-session-tabs
… 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
…nb2025/mobile-session-header-buttons # Conflicts: # mobile/src/session/mobile-session-frame-styles.ts
…ession-header-buttons # Conflicts: # mobile/src/session/MobileSessionHeader.tsx # mobile/src/session/MobileSessionTabStrip.tsx # mobile/src/session/mobile-session-frame-styles.ts
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
A community user on Discord said the phone's session tab strip "feels crowded" and that the "+" (new tab) button "always takes a bit of effort to tap it without missing it". The cause: every tab was a fixed 128pt wide however short its title, the strip row was only 36pt tall, and the header's buttons came in three different sizes. "+" and quick commands were the smallest: a 16pt glyph in a 40×36 area with no extra touch room, sitting flush against the tabs. Now every header and tab-strip button looks and responds the same, tabs are only as wide as their titles need, and every control has a 44pt touch area.
What Changed
MobileSessionHeaderIconButtonbecomes the only button in the header and tab strip (it gains adisabledstate). Each 36pt visual reserves 4pt on each side in layout for its 44pt touch area, so neighbouring buttons no longer compete for taps. The separate back, new-tab and quick-commands button styles are deleted.Why
One component is the simplest way to make every button the same size and look, and it removes styles instead of adding a special case for "+". Brennan reviewed the before/after mock and asked for the same UI on all buttons rather than a special "+".
This also sizes tabs to their titles, as proposed in community PR #28482 and tracked in #28472. This PR supersedes #28482. The landscape top bar, tab borders and 12pt gap between the session title and the strip divider from #29070 are already on main; this PR preserves them.
Linked Issue
No GitHub issue for the button feedback; it was reported in the Orca community Discord ("For mobile app when phone is turned"). Tab sizing is tracked in #28472.
Based on main. #29070 has merged; no parent PR needs to land first.
Visual Proof
Coordinator iOS Simulator QA passed on
99327db90c14b3e85e3ce6be98dfe43cbf2f791c. The main-versus-PR screenshots below are for this head. iPhone SE landscape preserves the divider and the 12pt layout gap before the first tab; iPhone 17 Pro landscape has no overlap at the start or halfway through scrolling; portrait keeps two rows.Header and tab-strip buttons now share one size and one pressed look, a plain terminal tab shows a terminal icon, and each tab is only as wide as its title, up to 128pt.
Pressed on this PR: the tab strip + and the header More button both take the same raised fill while held.
Measured: on main every tab is 128pt; on this PR Claude is 76–78pt, Shell is 64pt, Notes.md is 93pt, and long titles stay at the 128pt cap. The divider before the first tab is intact on both, and the space from the title’s last glyph to that divider is 28px (14pt) on the SE before shot and 21px (10.5pt) on the SE after shot.
Testing
host-sidebar-reveal.test.tsx) now counts pressable buttons, since the label sits on the shared button component.Review
Plan: keep the existing landscape top bar and its approved 12pt title-to-divider gap, use the shared button for all header and tab-strip actions, and let tabs fit their titles within the existing bounds. Recheck the main merge narrowly and run iOS Simulator QA on the final head.
Review path: continuing the completed full review with a narrow integration check.
Agent skill upstream boundary
Notes
Mobile only. There is no desktop, SSH or wire change.
Checklist