Skip to content

Commit

Permalink
Actually fix image diff padding/border
Browse files Browse the repository at this point in the history
go-gitea#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>.
  • Loading branch information
silverwind committed Jul 30, 2020
1 parent 838fef2 commit 0e1bd1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@
}

img {
padding: 0;
border-radius: 0;
}
}
Expand Down Expand Up @@ -1801,7 +1800,8 @@
&.file-content {
img {
max-width: 100%;
padding: 5px 5px 0;
padding: 0;
border-radius: 0;
}
img.emoji {
padding: 0;
Expand Down

0 comments on commit 0e1bd1e

Please sign in to comment.