Browse Source

fix emojis overflowing the chat message (#3228)

* fix emojis overflowing the chat message

* fix: force ignoring of certain paths?

---------

Co-authored-by: janWilejan <>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
pull/3235/head
janWilejan 2 years ago committed by GitHub
parent
commit
c00b0be3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/components/chat/ChatUserMessage/emojiMatcher.ts
  2. 5
      web/styles/globals.scss

2
web/components/chat/ChatUserMessage/emojiMatcher.ts

@ -11,7 +11,7 @@ interface options { @@ -11,7 +11,7 @@ interface options {
className: string;
}
const emojiPattern = '\\p{RGI_Emoji}+';
const emojiPattern = '\\p{RGI_Emoji}';
const regexSupportsUnicodeSets = (() => {
// Using a variable for regexpFlags to avoid eslint error about the flag

5
web/styles/globals.scss

@ -124,11 +124,10 @@ body { @@ -124,11 +124,10 @@ body {
}
.emoji {
display: inline-block;
font-size: 30px;
height: 30px;
line-height: 30px;
margin-left: 5px;
margin-right: 5px;
margin-left: 2px;
margin-right: 2px;
vertical-align: middle;
}

Loading…
Cancel
Save