Push the whole composer up with the keyboard on mobile
The keyboard shift was applied only to the input box inside the composer, so the subagents track and the draft import-session pill — rendered as siblings above the composer — stayed behind the keyboard. Lift the shift to the wrapper that holds the full composer column and add an opt-out prop so the composer skips its own shift when a parent owns it.
This commit is contained in:
@@ -1392,9 +1392,13 @@ function ActiveAgentComposer({
|
||||
],
|
||||
);
|
||||
|
||||
const { style: composerKeyboardStyle } = useKeyboardShiftStyle({
|
||||
mode: "translate",
|
||||
});
|
||||
|
||||
const inputAreaStyle = useMemo(
|
||||
() => [styles.inputAreaWrapper, { paddingBottom: insets.bottom }],
|
||||
[insets.bottom],
|
||||
() => [styles.inputAreaWrapper, { paddingBottom: insets.bottom }, composerKeyboardStyle],
|
||||
[insets.bottom, composerKeyboardStyle],
|
||||
);
|
||||
|
||||
const composerFooter = useMemo(
|
||||
@@ -1406,7 +1410,7 @@ function ActiveAgentComposer({
|
||||
);
|
||||
|
||||
return (
|
||||
<View style={inputAreaStyle}>
|
||||
<ReanimatedAnimated.View style={inputAreaStyle}>
|
||||
<SubagentsTrack
|
||||
rows={subagentRows}
|
||||
onOpenSubagent={handleOpenSubagent}
|
||||
@@ -1415,6 +1419,7 @@ function ActiveAgentComposer({
|
||||
<Composer
|
||||
agentId={agentId}
|
||||
serverId={serverId}
|
||||
externalKeyboardShift
|
||||
isPaneFocused={isPaneFocused}
|
||||
value={agentInputDraft.text}
|
||||
onChangeText={agentInputDraft.setText}
|
||||
@@ -1434,7 +1439,7 @@ function ActiveAgentComposer({
|
||||
onClientSlashCommand={handleClientSlashCommand}
|
||||
footer={composerFooter}
|
||||
/>
|
||||
</View>
|
||||
</ReanimatedAnimated.View>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user