RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.08k stars 10.34k forks source link

Integration Webhook Script field display entire script on single line #18297

Open kendrickluong opened 4 years ago

kendrickluong commented 4 years ago

Description:

Integration webbook script field displays entire script on single line cannot input new line character

Steps to reproduce:

Administration > Integrations > Incoming > Webhook Name > Script

Expected behavior:

Script should be displayed over multiple lines, with indentation and preferably monospaced/unformatted font

Actual behavior:

Entire script is displayed on single line

Server Setup Information:

Client Setup Information

href commented 4 years ago

Related issue for me in 3.4.2:

crycode-de commented 4 years ago

Same in Rocket.Chat 3.5.0. Entire script is displayed on single line and no syntax highlighting.

Seems to be related to the following style:

.rcx-input-box {
  white-space: nowrap;
}

If I disable this rule in the browser dev tools the line breaks are displayed correctly.

nick2432 commented 11 months ago

can i work on this issue?

himani-mehra commented 2 weeks ago

Hi @kendrickluong , I would love to take on this issue and contribute to the project. Could you please assign it to me if it's available? Looking forward to your response. Thanks!