bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

Multi-Line Text Field Needs side scroll #645

Open raszuk opened 1 year ago

raszuk commented 1 year ago

The Request Multi-Line Text Field #475 added multiline text. It is awesome addition, but with longer then page text pasted into it yields unusable as result part is no longer visible in the browser.

Is there some way to limit number of lines visible in multiline text section and add side scroll bar to it to scroll through longer then half of the screen text ? Thx !

chiva commented 1 year ago

@raszuk I have the following CSS override on conf/theme/theme.css just for that (create it if you don't have it).

.script-parameters-panel .parameter textarea {
    max-height: 15em;
    overflow: auto;
}

It will give you around max 10 lines of text, you can play with max-height and set it to your liking. If content exceeds that max, then it will add scroll bar.