Skip to content
TypeScript

fix(mobile): the empty composer row shows only the provider icon (#23570)

olivera8dba9ca93ab
diff --git a/apps/mobile/src/features/threads/ThreadComposer.tsx b/apps/mobile/src/features/threads/ThreadComposer.tsx
index 990c88caaab..f8751d970dc 100644
--- a/apps/mobile/src/features/threads/ThreadComposer.tsx
+++ b/apps/mobile/src/features/threads/ThreadComposer.tsx
@@ -849,8 +849,6 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
</>
) : null;
- // The row and the card's toolbar share this picker. It shrinks to the provider
- // icon in the row once the draft has text, so the draft keeps the width.
const modelControl = (
<View className="min-w-0 shrink">
<ComposerModelControl
@@ -861,9 +859,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
reportedSelection={props.reportedModelSelection}
prompt={draftMessage}
surfaceColor={composerPanel}
- iconOnly={
- (draftMessage.length > 0 || stripAttachments.length > 0) && !compactEditor.isExpanded
- }
+ iconOnly={!compactEditor.isExpanded}
onPress={openSettings}
/>
</View>