You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2021-12-28] iOS - Emoji top is cut in LHN message preview #6390
Lines 1 and 5 show the current behavior, using both Exp's and React Native's .
Line 1 would have heigh 21 (automatically calculated by the OS).
Lines 2 and 6 show the current behavior, cutting a bit of the emoji
Lines 3/4 and 7/8 show small improvements until the emoji is properly drawn.
I'm not sure why, but even using RN's default component we have emoji cut out depending on the height/lineHeight.
To fix this, we need to tweak optionAlternateText in 3 places:
Has a total height 40 as the component height is 16 and mt6 is 24
So, my suggestion is to:
A) change optionAlternateText to have lineHeight/height: 20, behaving kinda like mt1 by default
B) Remove mt1 from use cases 1 and 2
C) Change mb6 to mb5 in use case 3
This change will make sure that all items keep their designed heights but allow space to emoji wherever is needed.
📣 @sidferreira You have been assigned to this job by @roryabraham!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
changed the title [-]iOS - Emoji top is cut in LHN message preview[/-][+][HOLD for payment 2021-12-28] iOS - Emoji top is cut in LHN message preview[/+]on Dec 21, 2021
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.22-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
MelvinBot commentedon Nov 22, 2021
Triggered auto assignment to @yuwenmemon (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.sidferreira commentedon Nov 22, 2021
Found while addressing #6096 with #6289. I believe the fix indeed requires some lineHeight/height calibration
MelvinBot commentedon Nov 25, 2021
@yuwenmemon Whoops! This issue is 2 days overdue. Let's get this updated quick!
MelvinBot commentedon Nov 29, 2021
@yuwenmemon 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
MelvinBot commentedon Dec 1, 2021
@yuwenmemon 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
sidferreira commentedon Dec 1, 2021
Proposal
The text in question has
fontSize:13; lineHeight: 16; height: 16, so, if we had a view around that, it would have aheight: 16.Now, using the following image for reference:

Which is basically:
Lines 1 and 5 show the current behavior, using both Exp's and React Native's .
Line 1 would have heigh 21 (automatically calculated by the OS).
Lines 2 and 6 show the current behavior, cutting a bit of the emoji
Lines 3/4 and 7/8 show small improvements until the emoji is properly drawn.
I'm not sure why, but even using RN's default component we have emoji cut out depending on the
height/lineHeight.To fix this, we need to tweak
optionAlternateTextin 3 places:Use case 1
App/src/pages/home/HeaderView.js
Lines 151 to 159 in ecce012
Use case 2
App/src/pages/home/sidebar/OptionRow.js
Line 95 in 0311b18
Have a
total height 20as the componentheightis16andmt1is4.Use case 3
App/src/pages/ReportDetailsPage.js
Lines 147 to 155 in ecce012
Has a
total height 40as the componentheightis16andmt6is24So, my suggestion is to:
A) change
optionAlternateTextto havelineHeight/height: 20, behaving kinda likemt1by defaultB) Remove
mt1from use cases 1 and 2C) Change
mb6tomb5in use case 3This change will make sure that all items keep their designed heights but allow space to emoji wherever is needed.
MelvinBot commentedon Dec 1, 2021
Triggered auto assignment to @jliexpensify (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.32 remaining items
roryabraham commentedon Dec 13, 2021
Got it, caught up and this makes sense. Thanks for working together on this one @parasharrajat and @sidferreira – proposal LGTM. @jliexpensify please hire @sidferreira for this job on Upwork.
MelvinBot commentedon Dec 13, 2021
📣 @sidferreira You have been assigned to this job by @roryabraham!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
jliexpensify commentedon Dec 13, 2021
Invite to @sidferreira sent via Upwork!
sidferreira commentedon Dec 15, 2021
@roryabraham @parasharrajat #6766
[-]iOS - Emoji top is cut in LHN message preview[/-][+][HOLD for payment 2021-12-28] iOS - Emoji top is cut in LHN message preview[/+]botify commentedon Dec 21, 2021
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.22-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2021-12-28. 🎊
laurenreidexpensify commentedon Dec 28, 2021
Hi @sidferreira if you accept the job in Upwork I will proceed with payment for you
sidferreira commentedon Dec 28, 2021
@laurenreidexpensify done, thanks
laurenreidexpensify commentedon Dec 28, 2021
Paid 🚀