Skip to content

Line breaks are lost when displaying text in info panel #2651

Open
@404-html

Description

@404-html

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.

Image

Steps to reproduce

Setup info panel on a collection, and return following from the cloud function:

{
  panel: {
    segments: [
      {
        title: "User Info",
        items: [
          {
            type: "text",
            text: `
line 1

line 2`,
          },
        ],
      },
    ],
  },
}

Actual Outcome

Besides the line breaks, text is wrapped into single line.

Expected Outcome

I would expect line breaks to be preserved.

Environment

Dashboard

  • Parse Dashboard version: 6.0.0-alpha.28
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Chrome
  • Browser version: 131.0.6778.205 (Official Build) (arm64)

Server

  • Parse Server version: any
  • Operating system: any
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): any
  • Database version: any
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): any

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions