Skip to content

Commit 2fbcf85

Browse files
committed
fix(tui): ensure input text visible at small window sizes (fixes anomalyco#4332)
The prompt component had flexShrink={0} which prevented the textarea container from shrinking when the window is small. This caused text to become invisible or clipped at small terminal sizes (80x24, 80x40). Changed the textarea container box to use: - minHeight={0} to allow shrinking below content size - flexShrink={1} to allow responsive shrinking This follows the same pattern used in home.tsx for components that need to shrink responsively while maintaining minimum visibility.
1 parent 138cba1 commit 2fbcf85

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

‎packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,8 @@ export function Prompt(props: PromptProps) {
896896
paddingLeft={2}
897897
paddingRight={2}
898898
paddingTop={1}
899-
flexShrink={0}
899+
minHeight={0}
900+
flexShrink={1}
900901
backgroundColor={theme.backgroundElement}
901902
flexGrow={1}
902903
>

0 commit comments

Comments
 (0)