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

@@ -455,7 +455,7 @@ export default function PromptInput(props: PromptInputProps) {
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
disabled={props.disabled}
rows={expandState() === "expanded" ? 15 : 3}
rows={expandState() === "expanded" ? (props.compactLayout ? 10 : 15) : 3}
spellcheck={false}
autocorrect="off"
autoCapitalize="off"