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
[$250] Emoji appears as larger when writing with a text in the composer #39867
Oh nevermind I see what you mean, it's larger in the composer than when inline, not that it's larger with no text accompanying it in general (which is expected I think)
The style is applied without checking whether the text contains only emojis or not, compared to the sent message where we only make the emojis larger if the text only contains emojis (by passing the islarge attribute).
What changes do you think we should make in order to solve the problem?
We also should conditionally applied the emoji only font size if the text only contains emoji. We can do the simplest fix in our App by passing the custom markdown style.
What alternative solutions did you explore? (Optional)
If we want to go with a hard path, we can update expensify-common by adding islarge attribute to the emoji tag when parsing the markdown and then update react-native-live-markdown to conditionally apply the emoji font size when islarge is present.
changed the title [-]Emoji appears as larger when writing with a text in the composer [/-][+][$250] Emoji appears as larger when writing with a text in the composer [/+]on Apr 12, 2024
@greg-schroeder this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Activity
melvin-bot commentedon Apr 8, 2024
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.greg-schroeder commentedon Apr 9, 2024
Is this actually a bug? This is how Whatsapp works
greg-schroeder commentedon Apr 9, 2024
Oh nevermind I see what you mean, it's larger in the composer than when inline, not that it's larger with no text accompanying it in general (which is expected I think)
bernhardoj commentedon Apr 9, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The emoji is shown larger in live markdown preview when it should be normal size when there is a text other than emoji, just like in the sent message.
What is the root cause of that problem?
When there is an emoji, we wrap it with
<emoji>tag. For the emoji tag, we set the font size to 20.https://github.com/Expensify/react-native-live-markdown/blob/4a87a7a83898091f6c4521f895cbb1949a9dd39d/src/styleUtils.ts#L26-L28
The style is applied without checking whether the text contains only emojis or not, compared to the sent message where we only make the emojis larger if the text only contains emojis (by passing the
islargeattribute).App/src/pages/home/report/comment/TextCommentFragment.tsx
Lines 59 to 60 in b0c4178
What changes do you think we should make in order to solve the problem?
We also should conditionally applied the emoji only font size if the text only contains emoji. We can do the simplest fix in our App by passing the custom markdown style.
What alternative solutions did you explore? (Optional)
If we want to go with a hard path, we can update expensify-common by adding
islargeattribute to the emoji tag when parsing the markdown and then update react-native-live-markdown to conditionally apply the emoji font size whenislargeis present.[-]Emoji appears as larger when writing with a text in the composer [/-][+][$250] Emoji appears as larger when writing with a text in the composer [/+]melvin-bot commentedon Apr 12, 2024
melvin-bot commentedon Apr 12, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0133c309a7b0cbb650
greg-schroeder commentedon Apr 12, 2024
Sending through to External
10 remaining items
twisterdotcom commentedon Apr 16, 2024
Please review these now @rayane-djouah.
rayane-d commentedon Apr 16, 2024
I can reproduce the bug only on production, not on staging or dev:
Recording.2024-04-16.112540.mp4
bernhardoj commentedon Apr 16, 2024
It's already fixed in #39597
rayane-d commentedon Apr 16, 2024
We can close this then
melvin-bot commentedon Apr 19, 2024
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
rayane-d commentedon Apr 19, 2024
@greg-schroeder The bug is not reproducible; we can close this issue
melvin-bot commentedon Apr 22, 2024
@greg-schroeder this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
melvin-bot commentedon Apr 22, 2024
@greg-schroeder Whoops! This issue is 2 days overdue. Let's get this updated quick!
twisterdotcom commentedon Apr 22, 2024
Let's close.