Skip to content

Commit abf8f43

Browse files
authored
fix(mobile): keep floating status within the composer width (#25671)
1 parent 977a188 commit abf8f43

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

‎apps/mobile/src/features/threads/ThreadDetailScreen.tsx‎

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,40 +1382,40 @@ function ThreadDetailBody(props: ThreadDetailScreenProps) {
13821382
onLayout={handleComposerOverlayLayout}
13831383
className="w-full"
13841384
>
1385-
<FloatingWorkingControl
1386-
colorScheme={isDarkMode ? "dark" : "light"}
1387-
status={floatingStatus}
1388-
lift={floatingControlLift}
1389-
devicePreview={
1390-
devicePreviews.length > 0
1391-
? { count: devicePreviews.length, onPress: openDevicePreview }
1392-
: null
1393-
}
1394-
browserPreview={
1395-
browserTabs.tabs.length > 0
1396-
? { count: browserTabs.tabs.length, onPress: () => openBrowserPreview() }
1397-
: null
1398-
}
1399-
showScrollToEnd={showScrollToEndButton}
1400-
onScrollToEnd={handleScrollToEnd}
1401-
agents={agentsSegment}
1402-
onOpenAgents={() => {
1403-
Keyboard.dismiss();
1404-
navigation.navigate("ThreadAgents", {
1405-
environmentId: props.environmentId,
1406-
threadId: props.selectedThread.id,
1407-
});
1408-
}}
1409-
queuedCount={queuedCount}
1410-
onOpenQueue={() => {
1411-
Keyboard.dismiss();
1412-
navigation.navigate("ThreadQueue", {
1413-
environmentId: props.environmentId,
1414-
threadId: props.selectedThread.id,
1415-
});
1416-
}}
1417-
/>
14181385
<View className="w-full self-center" style={{ maxWidth: contentMaxWidth }}>
1386+
<FloatingWorkingControl
1387+
colorScheme={isDarkMode ? "dark" : "light"}
1388+
status={floatingStatus}
1389+
lift={floatingControlLift}
1390+
devicePreview={
1391+
devicePreviews.length > 0
1392+
? { count: devicePreviews.length, onPress: openDevicePreview }
1393+
: null
1394+
}
1395+
browserPreview={
1396+
browserTabs.tabs.length > 0
1397+
? { count: browserTabs.tabs.length, onPress: () => openBrowserPreview() }
1398+
: null
1399+
}
1400+
showScrollToEnd={showScrollToEndButton}
1401+
onScrollToEnd={handleScrollToEnd}
1402+
agents={agentsSegment}
1403+
onOpenAgents={() => {
1404+
Keyboard.dismiss();
1405+
navigation.navigate("ThreadAgents", {
1406+
environmentId: props.environmentId,
1407+
threadId: props.selectedThread.id,
1408+
});
1409+
}}
1410+
queuedCount={queuedCount}
1411+
onOpenQueue={() => {
1412+
Keyboard.dismiss();
1413+
navigation.navigate("ThreadQueue", {
1414+
environmentId: props.environmentId,
1415+
threadId: props.selectedThread.id,
1416+
});
1417+
}}
1418+
/>
14191419
{props.queuedRunEdit !== null ? (
14201420
<Animated.View
14211421
className="shrink-0"

0 commit comments

Comments
 (0)