-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Increase emoji size within text messages on web #46398
Increase emoji size within text messages on web #46398
Conversation
@parasharrajat Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -57,7 +59,14 @@ function TextCommentFragment({fragment, styleAsDeleted, styleAsMuted = false, so | |||
const editedTag = fragment?.isEdited ? `<edited ${styleAsDeleted ? 'deleted' : ''} ${doesTextContainOnlyEmojis ? 'islarge' : ''}></edited>` : ''; | |||
const htmlWithDeletedTag = styleAsDeleted ? `<del>${html}</del>` : html; | |||
|
|||
const htmlContent = doesTextContainOnlyEmojis ? Str.replaceAll(htmlWithDeletedTag, '<emoji>', '<emoji islarge>') : htmlWithDeletedTag; | |||
let htmlContent = doesTextContainOnlyEmojis ? Str.replaceAll(htmlWithDeletedTag, '<emoji>', '<emoji islarge>') : htmlWithDeletedTag; |
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.
This String.replaceAll
is duplicate.
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.
Updated
Sorry as I'm definitely missing something, but I have no idea what this is fixing 😂 Your test case doesn't look to be the same as your screenshots!? Again, sorry if I'm being stupid here haha. |
@dubielzyk-expensify This PR increases emojis font size in the messages where text and emojis are mixed on the web platforms. Does it look more clear to you?
|
I see. Thanks for that clarification 😄 Looks good to me, but I'll let @shawnborton chime in incase he's seeing something I'm not. |
@shawnborton I've reused the existing
|
Yeah, I think we want all of our normal paragraph text to have a line height of 20px. This way the paragraphs all look like they have the same line height matter if there are emojis or not. Thanks! |
This comment has been minimized.
This comment has been minimized.
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Hmm seeing some strange behavior while testing.
Is there any way to make adding an emoji here feel as smooth as adding any character? |
@shawnborton Could you please provide a video as well so I'm sure we are on the same line |
Ah apologies I totally forgot to attach this: CleanShot.2024-07-29.at.15.11.24.mp4 |
@shawnborton I've updated it a little. Could you give it another try? |
Will run a test build again |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Definitely better, but it still jumps a little bit: CleanShot.2024-07-29.at.19.12.51.mp4Any ideas how to solve that? |
Details
This PR is a follow-up of #40692. It increases emojis size within the text messages on the web platform.
It should fix this issue.
Fixed Issues
$ #4114
PROPOSAL: N/A
Tests
Offline tests
Same as in the Tests section.
QA Steps
Same as in the Tests section.
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: mWeb Chrome
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop