summaryrefslogtreecommitdiffstats
path: root/web_src/less/_repository.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-08-06 18:41:45 +0200
committerGitHub <noreply@github.com>2020-08-06 12:41:45 -0400
commit0dfbef5f7032737ff4e61172931a979acbde19b5 (patch)
tree89a052ac4836c17d1deba707cc568f27bc913a7d /web_src/less/_repository.less
parent2c1ae6c82d0b3fa62dda7e6a30fb91e27aba6e04 (diff)
downloadgitea-0dfbef5f7032737ff4e61172931a979acbde19b5.tar.gz
gitea-0dfbef5f7032737ff4e61172931a979acbde19b5.zip
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>
Diffstat (limited to 'web_src/less/_repository.less')
-rw-r--r--web_src/less/_repository.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 81a3282ee4..4c3861c5c3 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;