-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Stop showing scrollbar unless we are in terminalBuffer mode #25320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1836,7 +1836,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ | |||||
| height={Math.min(buffer.viewportHeight, scrollableData.length)} | ||||||
| width="100%" | ||||||
| > | ||||||
| {isAlternateBuffer ? ( | ||||||
| {config.getUseTerminalBuffer() ? ( | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replacing
To achieve the goal of hiding the scrollbar while maintaining functionality, you should keep the
Suggested change
References
|
||||||
| <ScrollableList | ||||||
| ref={listRef} | ||||||
| hasFocus={focus} | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ScrollableList was causing the render artifacts seen in the bug when rendering when rendering with a background color in alternate buffer mode but not terminalBuffer mode.
We'll eventually make getUserTerminalBuffer() the default so no harm in restricting showing the scrollbars in the input prompt to this case.