From d7ab72681d109ea3d0057df3fd2a96f6c7aff382 Mon Sep 17 00:00:00 2001 From: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Date: Mon, 30 Nov 2020 17:11:17 +0100 Subject: [PATCH] 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 Co-authored-by: silverwind --- web_src/less/_repository.less | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index d1f0317b7..55cc4f78b 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;