From 0dfbef5f7032737ff4e61172931a979acbde19b5 Mon Sep 17 00:00:00 2001
From: silverwind <me@silverwind.io>
Date: Thu, 6 Aug 2020 18:41:45 +0200
Subject: [PATCH] Actually fix image diff padding/border (#12381)

https://github.com/go-gitea/gitea/pull/12346 was using the wrong
selector which affected only the single image view. Use the correct
selector for image diffs. Removal of border-radius is still worth to
keep to override the global 3px on <img>.

Co-authored-by: Lauris BH <lauris@nix.lv>
---
 web_src/less/_repository.less | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 81a3282ee..4c3861c5c 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -440,7 +440,6 @@
                 }
 
                 img {
-                    padding: 0;
                     border-radius: 0;
                 }
             }
@@ -1801,7 +1800,8 @@
         &.file-content {
             img {
                 max-width: 100%;
-                padding: 5px 5px 0;
+                padding: 0;
+                border-radius: 0;
             }
             img.emoji {
                 padding: 0;