gradio-app/gradio

Can gradio add a vertical scrollbar to the textbox?

Closed this issue · 2 comments

  • I have searched to see if a similar issue already exists.
    #6977
    But this issue has been closed

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

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

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.