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;