From bec53767696fe39403ca69cf91148a65f7e7543c Mon Sep 17 00:00:00 2001 From: daledah Date: Mon, 16 Sep 2024 14:32:06 +0700 Subject: [PATCH] fix: attribute name --- src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx | 2 +- src/pages/home/report/comment/TextCommentFragment.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx b/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx index c0f42ffd2fd9..d211aac7fd4c 100755 --- a/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx +++ b/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx @@ -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; diff --git a/src/pages/home/report/comment/TextCommentFragment.tsx b/src/pages/home/report/comment/TextCommentFragment.tsx index 4f68919af6e2..2e64af6c534e 100644 --- a/src/pages/home/report/comment/TextCommentFragment.tsx +++ b/src/pages/home/report/comment/TextCommentFragment.tsx @@ -64,7 +64,7 @@ function TextCommentFragment({fragment, styleAsDeleted, styleAsMuted = false, so let htmlContent = htmlWithDeletedTag; if (containsOnlyEmojis) { htmlContent = Str.replaceAll(htmlContent, '', ''); - htmlContent = Str.replaceAll(htmlContent, '
', '
'); + htmlContent = Str.replaceAll(htmlContent, '
', '
'); } let htmlWithTag = editedTag ? `${htmlContent}${editedTag}` : htmlContent;