Skip to content

Commit 1a22ef9

Browse files
voida6claude
andcommitted
fix(mobile): size the Android floating bar by where compose is actually drawn
The split sidebar draws compose on every tab except the Settings and Usage pages, so the bar kept its compose slot there only on Chats. Mirror both placements instead. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent e48cc58 commit 1a22ef9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,19 @@ export function AndroidWorkspaceNavigation(props: {
9999
const barWidth =
100100
props.paneWidth ??
101101
window.width - (Math.max(insets.left, FLOATING_TABS.edge) - FLOATING_TABS.edge);
102-
// Only the Chats list draws the compose button beside the bar.
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";
103108
const metrics = floatingTabsMetrics(
104109
tabs.length,
105110
scale,
106111
fabSize,
107112
barWidth,
108113
props.fillWidth,
109-
selectedTab === "threads" && connectionState.hasConnections,
114+
composeBesideBar && connectionState.hasConnections,
110115
);
111116
if (!rail && keyboardVisible) return null;
112117

0 commit comments

Comments
 (0)