Skip to content

Commit

Permalink
fix: attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Sep 16, 2024
1 parent e77ed2e commit bec5376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
tagName: 'blockquote',
contentModel: HTMLContentModel.block,
getMixedUAStyles: (tnode) => {
if (tnode.attributes.isEmojisOnly === undefined) {
if (tnode.attributes.isemojisonly === undefined) {
return;
}
return styles.onlyEmojisTextLineHeight;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/comment/TextCommentFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function TextCommentFragment({fragment, styleAsDeleted, styleAsMuted = false, so
let htmlContent = htmlWithDeletedTag;
if (containsOnlyEmojis) {
htmlContent = Str.replaceAll(htmlContent, '<emoji>', '<emoji islarge>');
htmlContent = Str.replaceAll(htmlContent, '<blockquote>', '<blockquote isEmojisOnly>');
htmlContent = Str.replaceAll(htmlContent, '<blockquote>', '<blockquote isemojisonly>');
}
let htmlWithTag = editedTag ? `${htmlContent}${editedTag}` : htmlContent;

Expand Down

0 comments on commit bec5376

Please sign in to comment.