diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 2d39759d8..d7abd96da 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 82b403de6..eb0ee7ca7 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 {