Skip to content

Commit a1ad163

Browse files
author
shihzu
committed
fix(tui): ensure input field text is visible in small windows (anomalyco#4332)
- Added minWidth={20} to prompt textarea container - Prevents input field from being compressed in small terminal windows - Ensures text remains visible even when window is very small Fixes anomalyco#4332
1 parent 48412f7 commit a1ad163

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ export function Prompt(props: PromptProps) {
817817
flexShrink={0}
818818
backgroundColor={theme.backgroundElement}
819819
flexGrow={1}
820+
minWidth={20}
820821
>
821822
<textarea
822823
placeholder={placeholderText()}

0 commit comments

Comments
 (0)