From 97559b5238b230fa6d6bfb4fa015f1d3e23b2cd9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 26 Oct 2021 20:29:48 +0800 Subject: [PATCH] Tune UI alignment for nav bar notification icon, avatar image, issue label (#17438) --- web_src/less/_base.less | 1 + web_src/less/_repository.less | 2 ++ 2 files changed, 3 insertions(+) diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 44b02270e827e..c09f3a2bdd8ac 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -637,6 +637,7 @@ a.ui.card:hover, .fitted .svg { margin-right: 0; + vertical-align: middle; } .searchbox { diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index dff4556d7b55e..ccc2dcf69c7a6 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -824,6 +824,7 @@ width: 20px; height: 20px; margin: 0 .25rem; + vertical-align: middle; } &:first-child:not(.commit) { @@ -2791,6 +2792,7 @@ .labels-list .label { margin: 2px 0; display: inline-block !important; + line-height: 1.3em; // there is a `font-size: 1.25em` for inside emoji, so here the line-height needs to be larger slightly } tbody.commit-list {