fix(ui): reduce prompt expanded height on mobile

Use the existing instance shell layout mode to cap expanded prompt rows to 10 on phone/tablet while keeping 15 on desktop.
This commit is contained in:
Shantur Rathore
2026-02-17 18:04:37 +00:00
parent dc13d9a7d0
commit 3f82dd21fe
4 changed files with 8 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ export interface PromptInputProps {
// Used to scope global "type-to-focus" behavior.
isActive?: boolean
// Phone/tablet layouts should keep the expanded prompt more compact.
compactLayout?: boolean
onSend: (prompt: string, attachments: Attachment[]) => Promise<void>
onRunShell?: (command: string) => Promise<void>
disabled?: boolean