Skip to content

Commit f7b43bb

Browse files
committed
fix(mobile): keep scheduled task prompts clear of microphone
1 parent d5c2c12 commit f7b43bb

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

‎apps/mobile/src/features/settings/components/ScheduledTaskPromptField.tsx‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function ScheduledTaskPromptField(props: {
2929
return (
3030
<View className="gap-2 border-t border-border-subtle px-4 py-3">
3131
<Text className="text-sm text-foreground-muted">Prompt</Text>
32-
<View className="relative">
32+
<View className="flex-row items-end">
3333
<TextInput
3434
accessibilityLabel="Prompt"
3535
value={props.value}
@@ -42,18 +42,16 @@ export function ScheduledTaskPromptField(props: {
4242
textAlignVertical="top"
4343
placeholder="What should the agent do each time?"
4444
placeholderTextColorClassName="accent-foreground-muted"
45-
className="max-h-40 min-h-24 font-sans text-base text-foreground"
45+
className="max-h-40 min-h-24 min-w-0 flex-1 font-sans text-base text-foreground"
4646
/>
4747
{showsIdleTrigger ? (
48-
<View className="absolute right-0 bottom-0 rounded-full bg-card">
49-
<ComposerDictationStartAction
50-
state={voice.state}
51-
isAvailable={voice.isAvailable}
52-
disabled={props.disabled}
53-
onStart={voice.start}
54-
onCancel={voice.cancel}
55-
/>
56-
</View>
48+
<ComposerDictationStartAction
49+
state={voice.state}
50+
isAvailable={voice.isAvailable}
51+
disabled={props.disabled}
52+
onStart={voice.start}
53+
onCancel={voice.cancel}
54+
/>
5755
) : null}
5856
</View>
5957
<ComposerDictationError

0 commit comments

Comments
 (0)