usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
25.25k stars 1.15k forks source link

Request body's "value" input doesn't scroll #2559

Open Sammy-T opened 2 months ago

Sammy-T commented 2 months ago

I have checked the following:

Describe the bug

When using Form URL Encoded or Multipart Form as the request body, each param's Value input field does not allow scrolling if overflowed. Oddly enough, the param's Key field seems to work as expected though.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

If I place the cursor in the value input and hold down the right arrow key, the cursor will disappear out of view when it reaches the end of the visible text.

bruno_input_screen

Sammy-T commented 2 months ago

bruno_input_field

Sammy-T commented 2 months ago

As far as I can tell, it looks like the Body value inputs use MultiLineEditor whereas similar inputs such as the Params value inputs appear to use SingleLineEditor. But I still don't see how to get the Body value inputs to scroll their overflowed text if it's necessary to keep them as MultiLineEditor.

dev-abir commented 1 month ago

Form params can be multi line (like address in a text box) that's why I believe they decided to go with the MultiLineEditor. Also you can set lineWrapping to true for the code mirror.

There must be a reason why they chose not to do these.