fix: when the comparison content is increased, it should not wrap

This commit is contained in:
shuai 2022-12-19 15:46:44 +08:00
parent 62efb68794
commit f15c04a614
1 changed files with 1 additions and 1 deletions

View File

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