[HOLD for payment 2021-12-27] [$500] Message preview in focus mode is not aligned with user name
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! https://www.upwork.com/jobs/~0144453341751f5873
Action Performed:
- Log in to e.cash and enable focus mode
- Check the message previews in LHN
Expected Result:
Message preview should be aligned with user name.
Actual Result:
Message preview is not aligned with user name. It's more visible if the user has an unread message.
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
- iOS
Version Number: 1.1.10-1
Reproducible in staging?: yes Reproducible in production?: yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @tgolen Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1635424338200200
Triggered auto assignment to @alex-mechler (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Looks like a good External issue!
Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Sorry I was OOO unwell, hence delay. Posting this on Upwork now.
https://www.upwork.com/jobs/~0144453341751f5873
Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
lol it's like melvin knew you reported it @tgolen !
Proposal
After investigation, it was noticed that if the message in the preview had an emoji (for example the default message for Concierge), the message would have problems with alignment.
The easiest solution I could find is adding to optionAlternateTextCompact (a style used only in focus mode only on that component) the following snippet:
...Platform.select({
ios: {
height: 20,
lineHeight: 20,
},
}),
This change would make the text having the same height and lineHeight as the name, ensuring the alignment.
| Before | After |
|---|---|
![]() |
![]() |
Important to mention that this issue also happens on non focus mode, it's just harder to notice (check the distance of the end of the letter p to the bottom of the cyan area)
My proposal will affect ONLY the focus mode
I'm not sure if we want to make any changes to non-focus mode though - we want the combined height of the sender + message preview to be 40px so it matches the avatar to the left. We get that by having the sender at 20px, plus a 4px margin, plus a message preview at 16px.
@shawnborton that change will affect only the focus mode on ios, I mentioned the non focus just as a curiosity. Sorry the confusion
We are placing all non-critical issues on hold while we're on a company offsite. The hold is expected to be lifted on 11/19 (but could go longer). For any PRs that are submitted before or during the hold, we will add a $250 bonus payment.
Increasing this job to $500 on behalf of the team here!
Still looking for a proposal, price now $500 - thanks Kadie
@laurenreidexpensify https://github.com/Expensify/App/issues/6096#issuecomment-956826027 isn't good?
@sidferreira , @tgolen is the Contributor Manager Engineer (CME) and is the one who should review your proposal above.
The base of the proposal looks fine to me, yep! π’ to move forward with it. I will chalk this up to just being psuedo code from your example, but please sure to follow our cross-platform patterns for platform specific styles (/styles/bold/index.android.js for example)
Sending proposal
Hired @sidferreira in Upwork!
π£ @sidferreira You have been assigned to this job by @laurenreidexpensify! Please apply to this job in Upwork and let us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
@mallenexpensify I noticed the following issue:
If you look close, you will see that the top part of the emoji is cut off.
I believe the solution is the same as the one for this issue: tweak lineHeight and height a bit.
Should I create an issue for this? If so, can I propose the fix as well?
Or maybe I just fix it in this PR and add a little extra (as it is out of scope π )?
This screenshot is from v1.1.8-0


