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

@@ -29,6 +29,7 @@ interface SessionViewProps {
instanceFolder: string
escapeInDebounce: boolean
isPhoneLayout?: boolean
compactPromptLayout?: boolean
showSidebarToggle?: boolean
onSidebarToggle?: () => void
forceCompactStatusLayout?: boolean
@@ -322,6 +323,7 @@ export const SessionView: Component<SessionViewProps> = (props) => {
instanceFolder={props.instanceFolder}
sessionId={activeSession.id}
isActive={props.isActive}
compactLayout={props.compactPromptLayout}
onSend={handleSendMessage}
onRunShell={handleRunShell}
escapeInDebounce={props.escapeInDebounce}