Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: diffconten style adjustment

shuai84bca528dec0
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<Props> = ({
</div>
)}
{objectType === 'tag' && opts?.showTagUrlSlug && (
- <div className="mb-4 fs-14 font-monospace">
+ <div
+ className={clssnames(
+ 'fs-14 font-monospace',
+ newData.original_text && 'mb-4',
+ )}>
{`/tags/${
newData?.main_tag_slug_name
? diffText(