aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-11-30 17:11:17 +0100
committerGitHub <noreply@github.com>2020-11-30 18:11:17 +0200
commitd7ab72681d109ea3d0057df3fd2a96f6c7aff382 (patch)
tree18d474496a6641df05a523a9221a090f7e0937a5 /web_src
parent63aeb0a859499623becc1d1e7c8a2ad57439e139 (diff)
downloadgitea-d7ab72681d109ea3d0057df3fd2a96f6c7aff382.tar.gz
gitea-d7ab72681d109ea3d0057df3fd2a96f6c7aff382.zip
Fix avatar offset on PR/issue timeline view (#13753)
* Fix avatar offset on PR/issue timeline view * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_repository.less8
1 files changed, 6 insertions, 2 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index d1f0317b75..55cc4f78b7 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -837,8 +837,6 @@
width: 20px;
height: 20px;
margin-right: .5rem;
- position: relative;
- top: -2px;
}
&:first-child:not(.commit) {
@@ -894,6 +892,12 @@
.singular-commit {
line-height: 34px; /* this must be same as .badge height, to avoid overflow */
+ > .avatar.image,
+ > .avatar.image img {
+ position: relative;
+ top: -2px;
+ }
+
.shabox {
.sha.label {
margin: 0;