diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index b3e80881fd..9bf0a7f990 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -21,23 +21,18 @@
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} |
{{else}}
+ {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}
|
+ {{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.LeftIdx}}{{end}} |
{{/*
- */}}{{if $line.LeftIdx}}{{/*
- */}}{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{/*
- */}}{{else}}{{/*
- */}} {{/*
- */}}{{end}}{{/*
- */}} |
+ */}}{{if $line.LeftIdx}}{{$inlineDiff.Content}}{{end}}
{{/*
+ */}}
|
+ {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.RightIdx}}{{end}} |
{{/*
- */}}{{if $line.RightIdx}}{{/*
- */}}{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{/*
- */}}{{else}}{{/*
- */}} {{/*
- */}}{{end}}{{/*
+ */}}{{if $line.RightIdx}}{{$inlineDiff.Content}}{{end}} {{/*
*/}} |
{{end}}
@@ -67,8 +62,10 @@
|
|
{{end}}
+ {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}
+ {{if $inlineDiff.EscapeStatus.Escaped}}{{end}} |
|
- {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} |
+ {{$inlineDiff.Content}} |
{{end}}
{{end}}
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js
index 0523c3fb01..ce4981fbe3 100644
--- a/web_src/js/features/repo-issue.js
+++ b/web_src/js/features/repo-issue.js
@@ -504,7 +504,9 @@ export function initRepoPullRequestReview() {
|
` : `
- |
+ |
+ |
+ |
`}
`);
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 75ccc8d25f..18c463bf18 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -3186,7 +3186,7 @@ td.blob-excerpt {
background: var(--color-diff-inactive);
}
-.code-diff-split tbody tr td:nth-child(4) {
+.code-diff-split tbody tr td:nth-child(5) {
border-left: 1px solid var(--color-secondary);
}