From 84bca528dec03da687a56245dfe11072ee790d54 Mon Sep 17 00:00:00 2001 From: shuai Date: Tue, 29 Nov 2022 17:44:44 +0800 Subject: [PATCH 1/2] fix: diffconten style adjustment --- ui/src/components/DiffContent/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/src/components/DiffContent/index.tsx b/ui/src/components/DiffContent/index.tsx index 2becb18d..7f70c760 100644 --- a/ui/src/components/DiffContent/index.tsx +++ b/ui/src/components/DiffContent/index.tsx @@ -1,5 +1,7 @@ import { FC, memo } from 'react'; +import clssnames from 'classnames'; + import { Tag } from '@/components'; import { diffText } from '@/utils'; @@ -87,7 +89,11 @@ const Index: FC = ({ )} {objectType === 'tag' && opts?.showTagUrlSlug && ( -
+
{`/tags/${ newData?.main_tag_slug_name ? diffText( From c4c5f4016a706e5bf0833d533bc9f0ae8a8e3657 Mon Sep 17 00:00:00 2001 From: shuai Date: Tue, 29 Nov 2022 18:06:27 +0800 Subject: [PATCH 2/2] fix: diffText fucntion change --- ui/src/components/DiffContent/index.tsx | 2 +- ui/src/utils/common.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/DiffContent/index.tsx b/ui/src/components/DiffContent/index.tsx index 7f70c760..922e25c1 100644 --- a/ui/src/components/DiffContent/index.tsx +++ b/ui/src/components/DiffContent/index.tsx @@ -76,7 +76,7 @@ const Index: FC = ({ )} {objectType === 'question' && (
- {tag.map((item) => { + {tag?.map((item) => { return ( ') ?.replace(/