From 7a34fc0ae8f3db460c8ca1fa4dba6ca6212caebd Mon Sep 17 00:00:00 2001 From: mrsdizzie Date: Fri, 2 Oct 2020 10:38:38 -0400 Subject: [PATCH] Remove code-view class from diff view (#13011) code-view class seems unecessary here as everything needed style wise comes from various diff classes. This allows comments and comment editor to be styled properly and fixes linked bug. Fixes #13010 Co-authored-by: zeripath Co-authored-by: techknowlogick --- templates/repo/diff/box.tmpl | 2 +- web_src/less/_base.less | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 2d39759d80..d7abd96da1 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 82b403de6c..eb0ee7ca73 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 {