-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 #42615
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still tests well.
🧪🧪 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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