-
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
Set lineHeight for the report action compose box to 20px #2511
Conversation
Hey Jasper - I don't think this is the correct approach for this. Can you show me an example of where we have a large paragraph of text? With this quick fix, we know compromise the text style and we'll have a mismatch between how text appears in the compose box versus how text appears as chat messages. I know @stitesExpensify has been working on emoji-related items, and I think with this particular item we should address the emoji line height when we address making them larger as well. I think ideally the emoji objects get wrapped in something that specifically has a lineHeight of 20 so that it balances out with the rest of the text. |
@shawnborton Looks like you're absolutely correct that there is a very subtle mismatch between the comments and the compose box, thanks for catching this! Do you mind linking the issue that @stitesExpensify is working on?
Although I agree this is the correct way to move forward with things, one problem is that our current implementation of the report action compose box uses a Personally, I think this is a valuable thing to spend time on in case we want to implement things like real-time markdown rendering and other special inline elements that wouldn't otherwise be possible with a plain |
So this is something I've been looking into for the comments themselves, but not inside of the compose bar. I agree with you that it's definitely something worth spending time on and investigating given that we will probably want a bunch of live markdown in the future. That said I don't think that using |
After doing a good amount of research it doesn't seem like there are any React Native |
Looks like there's still some discussion going on here - I'm gonna be OOO for some of next week so gonna let @stitesExpensify take over reviewing this. If it's not merged when I'm back I'm happy to review! |
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.
I think you'll also want to apply this lineHeight
style in here as well 🙂 ... That way the issue will be fixed both in the compose box and in the report history.
@roryabraham Good catch! I just checked the link you sent me and it seems like |
✋ 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 in version: 1.0.33-1🚀
|
🚀 Deployed to production in version: 1.0.39-5🚀
|
Details
For whatever reason, emojis have a line height of 25px, in contrast to the line-height of 20px that plain text has. This means that the check happening here thinks that we need two rows to display the emoji when we only actually need 1.
Fixed Issues
Fixes #2490
Tests
Typed emojis into the report action compose box and verified that they displayed in the correct number of rows.
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android