Skip to content

Commit e48cc58

Browse files
voida6claude
andcommitted
fix(mobile): keep the Android floating tab bar inside a left display cutout
The bar starts at the left inset, so the full-width pill ran past the right edge when a cutout inset exceeded the edge margin. Size it from the width left after that inset. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent ad58959 commit e48cc58

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,16 @@ export function AndroidWorkspaceNavigation(props: {
9595
hidden,
9696
rail ? 5 : 4,
9797
);
98+
// FloatingWorkspaceTabs starts the bar at the left inset, so a cutout narrows the room.
99+
const barWidth =
100+
props.paneWidth ??
101+
window.width - (Math.max(insets.left, FLOATING_TABS.edge) - FLOATING_TABS.edge);
98102
// Only the Chats list draws the compose button beside the bar.
99103
const metrics = floatingTabsMetrics(
100104
tabs.length,
101105
scale,
102106
fabSize,
103-
props.paneWidth ?? window.width,
107+
barWidth,
104108
props.fillWidth,
105109
selectedTab === "threads" && connectionState.hasConnections,
106110
);

0 commit comments

Comments
 (0)