fix(tui): ensure input text visible at small window sizes#21304
Open
fakhriaunur wants to merge 1 commit intoanomalyco:devfrom
Open
fix(tui): ensure input text visible at small window sizes#21304fakhriaunur wants to merge 1 commit intoanomalyco:devfrom
fakhriaunur wants to merge 1 commit intoanomalyco:devfrom
Conversation
…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.
Contributor
|
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. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Fixes #4332
Type of change
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 sizeflexShrink={1}to allow responsive shrinkingThis 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?
Checklist