diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 2d39759d8018a..d7abd96da1c85 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -114,7 +114,7 @@
{{if ne $file.Type 4}}
-
+
{{if $isImage}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 82b403de6c452..eb0ee7ca7331a 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -997,6 +997,7 @@ i.icon.centerlock {
color: rgba(27, 31, 35, .3);
width: 1%;
user-select: none;
+ font-family: @monospaced-fonts, monospace;
span {
&.bottom-line {