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: timeline content add monospace text style
shuai81ec786366c6
diff --git a/ui/src/components/DiffContent/index.tsx b/ui/src/components/DiffContent/index.tsxindex 432fbc9e..77386664 100644--- a/ui/src/components/DiffContent/index.tsx+++ b/ui/src/components/DiffContent/index.tsx@@ -89,7 +89,7 @@ const Index: FC<Props> = ({ objectType, newData, oldData, className = '' }) => {dangerouslySetInnerHTML={{__html: diffText(newData.original_text, oldData?.original_text),}}- className="pre-line"+ className="pre-line text-break font-monospace"/></div>);diff --git a/ui/src/index.scss b/ui/src/index.scssindex fd0d5e46..20e96e07 100644--- a/ui/src/index.scss+++ b/ui/src/index.scss@@ -281,5 +281,5 @@ a {}.pre-line {- white-space: pre-line;+ white-space: pre-wrap;}