You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/07/15 07:48:09 UTC

(incubator-answer) 01/01: fix: remove content classname

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.3.6/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit d33a6572758fa07d2e7f2af4c1ed69965f0ca37d
Author: shuai <li...@sifou.com>
AuthorDate: Mon Jul 15 15:47:57 2024 +0800

    fix: remove  content  classname
---
 ui/src/utils/common.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/src/utils/common.ts b/ui/src/utils/common.ts
index d9d3bee5..32d63498 100644
--- a/ui/src/utils/common.ts
+++ b/ui/src/utils/common.ts
@@ -189,6 +189,7 @@ function escapeHtml(str: string) {
 }
 
 function formatDiffPart(part: any, className: string): string {
+  console.log('333333', part);
   if (part.value.replace(/\n/g, '').length <= 0) {
     if (part.value.match(/\n/g)?.length > 1) {
       const value = part.value.replace(/\n/, '');
@@ -220,7 +221,7 @@ function diffText(newText: string, oldText?: string): string {
       return formatDiffPart(part, 'review-text-add');
     }
     if (part.removed) {
-      return formatDiffPart(part, 'review-text-remove text-decoration-none');
+      return formatDiffPart(part, 'review-text-delete text-decoration-none');
     }
 
     return part.value;