Skip to content

[Hold for payment 2021-08-17] Code blocks renders to the end of the edge of the window #4377

@isagoico

Description

@isagoico

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Navigate to a conversation
  2. Send this message (with code markdown ` )
  3. Hello
  4. Send this other message
  5. Hello stop right there

Expected Result:

Code should be rendered only to the size of the text inside it. It should look something like the message sent in step 5.

Actual Result:

Code block extends to the edge of the window when sent individually.

Workaround:

N/A visual issue.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.82-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

image

Expensify/Expensify Issue URL:

View all open jobs on Upwork


From @alex-mechler https://expensify.slack.com/archives/C01GTK53T8Q/p1627931956075500

When rendering a code fenced message on a line with no plain text, the code fence renders to the end of the line. If there is any plain text on the line this does not happen. Occurring on desktop

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions