Skip to content
TypeScript

fix(mobile): keep floating status within the composer width (#25671)

Alexabf8f43f2a84
diff --git a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx
index 40469af6fdd..1820baa8095 100644
--- a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+++ b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx
@@ -1382,40 +1382,40 @@ function ThreadDetailBody(props: ThreadDetailScreenProps) {
onLayout={handleComposerOverlayLayout}
className="w-full"
>
- <FloatingWorkingControl
- colorScheme={isDarkMode ? "dark" : "light"}
- status={floatingStatus}
- lift={floatingControlLift}
- devicePreview={
- devicePreviews.length > 0
- ? { count: devicePreviews.length, onPress: openDevicePreview }
- : null
- }
- browserPreview={
- browserTabs.tabs.length > 0
- ? { count: browserTabs.tabs.length, onPress: () => openBrowserPreview() }
- : null
- }
- showScrollToEnd={showScrollToEndButton}
- onScrollToEnd={handleScrollToEnd}
- agents={agentsSegment}
- onOpenAgents={() => {
- Keyboard.dismiss();
- navigation.navigate("ThreadAgents", {
- environmentId: props.environmentId,
- threadId: props.selectedThread.id,
- });
- }}
- queuedCount={queuedCount}
- onOpenQueue={() => {
- Keyboard.dismiss();
- navigation.navigate("ThreadQueue", {
- environmentId: props.environmentId,
- threadId: props.selectedThread.id,
- });
- }}
- />
<View className="w-full self-center" style={{ maxWidth: contentMaxWidth }}>
+ <FloatingWorkingControl
+ colorScheme={isDarkMode ? "dark" : "light"}
+ status={floatingStatus}
+ lift={floatingControlLift}
+ devicePreview={
+ devicePreviews.length > 0
+ ? { count: devicePreviews.length, onPress: openDevicePreview }
+ : null
+ }
+ browserPreview={
+ browserTabs.tabs.length > 0
+ ? { count: browserTabs.tabs.length, onPress: () => openBrowserPreview() }
+ : null
+ }
+ showScrollToEnd={showScrollToEndButton}
+ onScrollToEnd={handleScrollToEnd}
+ agents={agentsSegment}
+ onOpenAgents={() => {
+ Keyboard.dismiss();
+ navigation.navigate("ThreadAgents", {
+ environmentId: props.environmentId,
+ threadId: props.selectedThread.id,
+ });
+ }}
+ queuedCount={queuedCount}
+ onOpenQueue={() => {
+ Keyboard.dismiss();
+ navigation.navigate("ThreadQueue", {
+ environmentId: props.environmentId,
+ threadId: props.selectedThread.id,
+ });
+ }}
+ />
{props.queuedRunEdit !== null ? (
<Animated.View
className="shrink-0"