Merge branch 'feat/ui-0.5.0' into 'test'

fix: timeline content add monospace text style

See merge request opensource/answer!277
This commit is contained in:
Li Shuailing 2022-11-24 09:39:15 +00:00
commit abef724e8e
2 changed files with 2 additions and 2 deletions

View File

@ -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>
);

View File

@ -281,5 +281,5 @@ a {
}
.pre-line {
white-space: pre-line;
white-space: pre-wrap;
}