style: improve readability for added and removed lines with border-left

This commit is contained in:
poroyo
2025-01-05 16:11:00 +09:00
parent 8ba4417065
commit 495163c9cf

View File

@@ -127,11 +127,11 @@
i++;
}
else{
resultHtml += `<div style="color: red; background-color: #ffe6e6;">${escapeHtml(linePart.value)}</div>`
resultHtml += `<div style="color: red; background-color: #ffe6e6; border-left: 4px solid red; padding-left: 8px;">${escapeHtml(linePart.value)}</div>`
}
}
else if(linePart.added){
resultHtml += `<div style="color: green; background-color: #e6ffe6;">${escapeHtml(linePart.value)}</div>`
resultHtml += `<div style="color: green; background-color: #e6ffe6; border-left: 4px solid green; padding-left: 8px;">${escapeHtml(linePart.value)}</div>`
}
else{
resultHtml += `<div>${escapeHtml(linePart.value)}</div>`