Fix emoji’s are cut in half when in Edit message mode#42615
Fix emoji’s are cut in half when in Edit message mode#42615rlinoz merged 7 commits intoExpensify:mainfrom
Conversation
|
Also, it seems like this has some overlap with @kbieganowski's PR over here? |
Thanks for pointing this out @shawnborton! Can confirm that this is not an issue in PR you mentioned: Screen.Recording.2024-05-27.at.08.57.30.movScreen.Recording.2024-05-27.at.09.07.25.mov |
The X button is always aligned to the bottom for edit composer
The bigger font size and line height increase the composer's height. It happens on prod too btw.
Yeah, there is an overlap with that PR. |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
|
Codewise it looks good, but I triggered a build so @shawnborton and @dubielzyk-expensify can review it as well. |
This comment has been minimized.
This comment has been minimized.
I'm not aware of any issue that handles this.
If we don't increase the line height, then the emoji will be cut in half again. Maybe we should readjust the emoji-only font size (and the line height) But I see that in #40692, we reduce the composer padding bottom to 0 and top padding to 7, thus reducing the height, so it will look like this. |
|
We can't do that on iOS, otherwise it will be cut in half. Maybe we should apply the increased line-height for native only? |
|
I think whatever the solution is, ideally it doesn't increase the composer height anywhere. Can you think of other approaches? Also just to confirm, the increased emoji line height already exists on production, right? So I mean one approach could be to just get this PR wrapped up so that the Edit behavior is the same as the compose behavior, and then we can fix the emoji line height in the other PR that is being worked on for emojis here. |
|
Yeah, it already exists in production. #40692 reduce the composer padding (not sure if it's the best way, but I can't think of other approaches) so the height will be normal as I pointed out in my previous comment here, so we can wrap this PR. Btw, I just refactored the code to reduce the conflict with #40692 |
|
Sounds good, thank you! |
|
@Ollyws Could you please test this again? |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.4.77-11 🚀
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.4.77-11 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀
|








Details
The emoji is enlarged when the composer only contains emoji, but we didn't increase the line height for edit composer.
Fixed Issues
$ #42530
PROPOSAL: #42530 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-05-25.at.10.01.48.mov
Android: mWeb Chrome
Screen.Recording.2024-05-25.at.10.03.32.mov
iOS: Native
Screen.Recording.2024-05-25.at.09.55.47.mov
iOS: mWeb Safari
Screen.Recording.2024-05-25.at.10.00.46.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-25.at.09.56.39.mov
MacOS: Desktop
Screen.Recording.2024-05-25.at.10.01.15.mov