App icon indicating copy to clipboard operation
App copied to clipboard

E.Cash [Edit Message] - Edited status is stretched if the message is multilined

Open isagoico opened this issue 5 years ago • 13 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Expected Result:

Edited status of the message should not be stretched in several lines

Actual Result:

Edited status is stretched if the message is multilined

Action Performed:

  1. Log in to e.cash
  2. Navigate to a conversation
  3. Send a multilined message
  4. Edit the message, be sure to leave it long enough so it's multilined

Workaround:

No need, visual issue.

Platform:

Where is this issue occurring?

Web ✔️ iOS Android Desktop App Mobile Web

Version Number: 1.0.50-0

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

Notes/Photos/Videos:

image

Expensify/Expensify Issue URL:

Upwork job post


From @puneetlath https://expensify.slack.com/archives/C01GTK53T8Q/p1621529335051300

I feel like we should pop the (edited) at the end of the last line, rather than having it stretch cross all the lines

isagoico avatar May 20 '21 20:05 isagoico

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

MelvinBot avatar May 20 '21 20:05 MelvinBot

Unique — Looks unique, unable to find another GH related. Issue hygiene — Looks good, nice job. Updated title with a small tweak, otherwise the template was used and filled out. Clarity of problem — Pretty clear here as well. It looks like you can only use Edit if you load locally and I can't do that (or don't know how to set that up) to test the recreation steps. The images are pretty clear though. Value — The change would improve the look of the Edited status and the stretch and make E.cash more polished.

strepanier03 avatar May 21 '21 23:05 strepanier03

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

MelvinBot avatar May 21 '21 23:05 MelvinBot

Issue reproducible today during KI retests

isagoico avatar May 23 '21 23:05 isagoico

Looks like a good one to handle externally! This is handled all by the front end.

alex-mechler avatar May 24 '21 17:05 alex-mechler

Triggered auto assignment to @marklouisdeshaun (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar May 24 '21 17:05 MelvinBot

Triggered auto assignment to @puneetlath (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar May 24 '21 18:05 MelvinBot

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!

Expected Result:

Edited status of the message should not be stretched in several lines

Actual Result:

Edited status is stretched if the message is multilined

Action Performed:

  1. Log in to e.cash
  2. Navigate to a conversation
  3. Send a multilined message
  4. Edit the message, be sure to leave it long enough so it's multilined

Workaround:

No need, visual issue.

Platform:

Where is this issue occurring?

Web iOS Android Desktop App Mobile Web

Version Number: 1.0.50-0

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

Notes/Photos/Videos:

image

Expensify/Expensify Issue URL:

Upwork job post

From @puneetlath https://expensify.slack.com/archives/C01GTK53T8Q/p1621529335051300

I feel like we should pop the (edited) at the end of the last line, rather than having it stretch cross all the lines

I am fully confident to resolve this issue but I can share my inputs on the initial chat via Upwork (Bid proposal:- Gaurav Sethi)

devnet198 avatar May 24 '21 18:05 devnet198

Proposal

  1. It can be easily fixed by adding flex-wrapping here. https://github.com/Expensify/Expensify.cash/blob/03d777e389daded106350a7004a6078d13e084f6/src/pages/home/report/ReportActionItemFragment.js#L53

AS

<View style={[styles.flexRow, styles.flexWrap]}>

It gives us the following result. Screenshot 2021-05-24 23:47:12

Let me know if this is the desired behavior?

parasharrajat avatar May 24 '21 18:05 parasharrajat

I think that might be the best bet Rajat. My only feedback is that I would prefer that when the (edited) is on the line below the text above it, that we can remove the margin on the left of (edited).

shawnborton avatar May 24 '21 18:05 shawnborton

@shawnborton you mean for the last message (edited) should be in the next line?

parasharrajat avatar May 24 '21 18:05 parasharrajat

Sorry, I mean for this screenshot here: image

The (edited) text should have have a margin to the left of it.

shawnborton avatar May 24 '21 19:05 shawnborton

@parasharrajat can you please submit your proposal in Upwork?

marklouisdeshaun avatar May 24 '21 20:05 marklouisdeshaun