Skip to content

Commit a2d2d2c

Browse files
committed
fix(mobile): account for left insets in split navigation
1 parent 4d4bbf9 commit a2d2d2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export function AndroidWorkspaceNavigation(props: {
9797
);
9898
// FloatingWorkspaceTabs starts the bar at the left inset, so a cutout narrows the room.
9999
const barWidth =
100-
props.paneWidth ??
101-
window.width - (Math.max(insets.left, FLOATING_TABS.edge) - FLOATING_TABS.edge);
100+
(props.paneWidth ?? window.width) -
101+
(Math.max(insets.left, FLOATING_TABS.edge) - FLOATING_TABS.edge);
102102
const metrics = floatingTabsMetrics(tabs.length, scale, fabSize, barWidth, props.fillWidth);
103103
if (!rail && keyboardVisible) return null;
104104

0 commit comments

Comments
 (0)