@devries-cameron20 / t3code-1 / commits / 965291ec67
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): restore the reserved compose space on Android (#28819)

Alex committed Nov 1, 2026 at 10:34 UTC 965291ec67674475b9c590285ef1763cd2217f8c
2 files changed +3 -16
apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx
+1 -14
@@ -99,20 +99,7 @@ export function AndroidWorkspaceNavigation(props: {
99 const barWidth =
100 props.paneWidth ??
101 window.width - (Math.max(insets.left, FLOATING_TABS.edge) - FLOATING_TABS.edge);
102 - // A phone draws compose on the Chats list only; the split sidebar draws it on every tab
103 - // except the Settings and Usage pages.
104 - const composeBesideBar =
105 - props.paneWidth === undefined
106 - ? selectedTab === "threads"
107 - : selectedTab !== "settings" && selectedTab !== "usage";
108 - const metrics = floatingTabsMetrics(
109 - tabs.length,
110 - scale,
111 - fabSize,
112 - barWidth,
113 - props.fillWidth,
114 - composeBesideBar && connectionState.hasConnections,
115 - );
102 + const metrics = floatingTabsMetrics(tabs.length, scale, fabSize, barWidth, props.fillWidth);
103 if (!rail && keyboardVisible) return null;
104
105 return (
apps/mobile/src/features/workspace/floating-workspace-tabs.ts
+2 -2
@@ -7,7 +7,6 @@ export function floatingTabsMetrics(
7 fabSize: number,
8 paneWidth?: number,
9 fillWidth = false,
10 - composeVisible = true,
10 ) {
11 const unit = Math.max(1, scale);
12 const height = fabSize;
@@ -17,10 +16,11 @@ export function floatingTabsMetrics(
16 const room =
17 paneWidth === undefined
18 ? count * 60 * unit
20 - : sharesRow && composeVisible
19 + : sharesRow
20 ? paneWidth - beside
21 : paneWidth - 2 * FLOATING_TABS.edge;
22 return {
23 + // Reserve the compose slot even while its button is hidden.
24 pill: Math.max(0, fillWidth ? room : Math.min(count * 72 * unit, room)),
25 height,
26 row,