Skip to content

fix(tui): ensure input text visible at small window sizes#21304

Open
fakhriaunur wants to merge 1 commit intoanomalyco:devfrom
fakhriaunur:fix/tui-input-visibility
Open

fix(tui): ensure input text visible at small window sizes#21304
fakhriaunur wants to merge 1 commit intoanomalyco:devfrom
fakhriaunur:fix/tui-input-visibility

Conversation

@fakhriaunur
Copy link
Copy Markdown

Issue for this PR

Fixes #4332

Type of change

  • Bug fix

What does this PR do?

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.

How did you verify your code works?

  • Visual inspection at various terminal sizes
  • Follows existing design system patterns

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

…alyco#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.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

This PR appears to be addressing the same issue - making input text visible at small window/terminal sizes. You may want to verify if this is a newer attempt to fix the same problem or if it's truly a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: input field text is invisible when window is small

1 participant