-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Line breaks are lost when displaying text in info panel #2651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening this issue!
|
You mean to convert |
Yes, I tried both (adding into text on the cloud function side) - no effect. <p style="white-space: pre-line;">...</p> |
What would be a solution to this? On one hand the data should be escaped to not put the burden on the developer. On the other hand how should they enter a line-break? I suggest to add an option the |
Uh oh!
There was an error while loading. Please reload this page.
New Issue Checklist
Issue Description
When showing a multi line text in info panel, the line breaks are lost, and text is rendered as a single line.
Steps to reproduce
Setup info panel on a collection, and return following from the cloud function:
Actual Outcome
Besides the line breaks, text is wrapped into single line.
Expected Outcome
I would expect line breaks to be preserved.
Environment
Dashboard
6.0.0-alpha.28
Chrome
131.0.6778.205 (Official Build) (arm64)
Server
any
any
local
Database
any
any
any
Logs
The text was updated successfully, but these errors were encountered: