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: when the comparison content is increased, it should not wrap

shuaif15c04a614fe
diff --git a/ui/src/utils/common.ts b/ui/src/utils/common.ts
index cb6aea15..ec22ccc3 100644
--- a/ui/src/utils/common.ts
+++ b/ui/src/utils/common.ts
@@ -187,7 +187,7 @@ function diffText(newText: string, oldText: string): string {
'↵\n',
)}</span>`;
}
- return `<span class="review-text-add d-block">${part.value}</span>`;
+ return `<span class="review-text-add">${part.value}</span>`;
}
if (part.removed) {
if (part.value.replace(/\n/g, '').length <= 0) {