gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
29.84k stars 2.22k forks source link

Can gradio add a vertical scrollbar to the textbox? #8277

Closed yiya1989 closed 2 weeks ago

yiya1989 commented 2 weeks ago

Is your feature request related to a problem? Please describe.
When my text is too lang, it's hard to view all the txt because the Textbox has no vertical scrollbar .

Describe the solution you'd like
Add a vertical scrollbar to the left Textbox.

Additional context
Like this issue said: Add a scrollbar to notebook/default textboxes

image

abidlabs commented 2 weeks ago

Hi @yiya1989 you should already be able to scroll the textbox if it grows too long. The scrollbar is not needed and from a design perspective, we've opted out of adding it by default. If you'd like to add it, I'd suggest using custom css, as was done in the linked PR: https://github.com/oobabooga/text-generation-webui/commit/6afc1a193bb1d68deccd569c89d70ee9bf35246c

yiya1989 commented 2 weeks ago

Hi @yiya1989 you should already be able to scroll the textbox if it grows too long. The scrollbar is not needed and from a design perspective, we've opted out of adding it by default. If you'd like to add it, I'd suggest using custom css, as was done in the linked PR: oobabooga/text-generation-webui@6afc1a1

@abidlabs Hello! When the txt is 50 lines and the Textbox limit max 20 lines, it is useful to just scroll the textbox as the default. But when the txt lines reach to 500 lines, It's necessary to has a vertical scrollbar. Can we has a default vertical scrollbar which can control by a switch default False? Just like current github textbox editor, it also has the vertical scrollbar.