diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 0e8a598a65..42a7bf3c2a 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -36,7 +36,7 @@
{{- end -}}
{{- end -}}
- {{.CompareSeparator}}
+ {{svg "octicon-arrow-left" 16}}{{.CompareSeparator}}
{{if $.PageIsComparePull}}{{ctx.Locale.Tr "repo.pulls.compare_compare"}}{{else}}{{ctx.Locale.Tr "repo.compare.compare_head"}}{{end}}: {{$HeadCompareName}}:{{$.HeadBranch}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index e37788505e..6b6be99f74 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -1166,8 +1166,10 @@
flex-wrap: wrap;
}
-.repository .choose.branch .svg {
- margin-right: 10px;
+.repository .choose .compare-separator {
+ width: 100%;
+ margin-top: -1rem;
+ text-align: center;
}
.repository.compare.pull .comment.form .content::before,