Skip to content

[Pay 5/19] Wrap text when it includes markup #2790

Closed

Description

@twisterdotcom

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


Expected Result:

When sending a message with a hyperlink, any text within that message/paragraph which won't fit in the current window should wrap onto the next line within the current window. When resizing the window, this should change where the wrap in the text occurs.

Actual Result:

When sending a message with a hyperlink, the text sent remains on one line and cannot be scrolled to the right to read the remaining text.

Action Performed:

  1. Open staging.expensify.cash
  2. Sign in if not already
  3. Enter a chat with anybody
  4. Send the message:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
  1. This should wrap the text perfectly.
  2. Send the message:
www.expensify.com Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
  1. This will send the message on just one line.

Workaround:

Try to copy the line and paste it into the compose box (or some other text editor) in order to read what was written.

Platform:

Where is this issue occurring?

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

Haven't been able to repro on iOS or Android. Not sure what the PR that introduced it was. Perhaps #2320? @yuwenmemon?

Version Number: 1.0.41-9 (1.0.41-9) on staging.expensify.cash
Logs: N/A
Notes/Photos/Videos:

image

Expensify/Expensify Issue URL: Do I need this? I thought I could just create this here? cc @Expensify/contributor-management

View all open jobs on Upwork

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    ImprovementItem broken or needs improvement.
    on May 11, 2021
  2. MelvinBot commented on May 11, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @JmillsExpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    on May 11, 2021
  4. twisterdotcom commented on May 11, 2021

    @twisterdotcom
    ContributorAuthor

    Looks like this is any markup not just hyperlinks:

    image

  5. changed the title [-]Wrap text when it includes a hyperlink[/-] [+]Wrap text when it includes markup[/+] on May 11, 2021
  6. arielgreen commented on May 11, 2021

    @arielgreen
    Contributor

    Expensify/Expensify Issue URL: Do I need this? I thought I could just create this here?

    You are correct, our template needs to be updated.

  7. parasharrajat commented on May 11, 2021

    @parasharrajat
    Member

    Wow. We missed it for so long. But relatively, the fix is very simple.
    we just need to supply flex: 1 to base style here
    https://github.com/Expensify/Expensify.cash/blob/3997ae6620f8a104d08ec059e734934d85550f06/src/components/RenderHTML.js#L182

  8. JmillsExpensify commented on May 12, 2021

    @JmillsExpensify
    Contributor

    Seeing a bunch of this in v1.0.40-0. Reported here: https://expensify.slack.com/archives/C01GTK53T8Q/p1620796475097600. Releasing to the pool.

  9. MelvinBot commented on May 12, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @iwiznia (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  10. 8 remaining items

  11. self-assigned this
    on May 12, 2021
  12. JmillsExpensify commented on May 12, 2021

    @JmillsExpensify
    Contributor

    Oh thank you! I was hawking this one as well, not sure what happened (maybe because I was assigned)? I'm happy to help push from here btw.

  13. parasharrajat commented on May 12, 2021

    @parasharrajat
    Member

    @roryabraham It's ready. Will be listed in few minutes.

  14. changed the title [-]Wrap text when it includes markup[/-] [+][Pay 5/19] Wrap text when it includes markup[/+] on May 12, 2021
  15. roryabraham commented on May 12, 2021

    @roryabraham
    Contributor

    @isagoico This should be fixed as of 1.0.42-4

  16. roryabraham commented on May 13, 2021

    @roryabraham
    Contributor

    Verified this fix in 1.0.43-3:

    • Web
    • Desktop
    • iOS
    • iOS safari
  17. roryabraham commented on May 21, 2021

    @roryabraham
    Contributor

    Paid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ExternalAdded to denote the issue can be worked on by a contributorImprovementItem broken or needs improvement.WeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions