From 063b1d260fa5559fac0b77c215e8b06a9c083cec Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 13 Apr 2020 22:00:32 +0200 Subject: [PATCH] Fix language label vertical alignment (#11061) Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> --- templates/explore/code.tmpl | 2 +- templates/repo/search.tmpl | 2 +- web_src/less/_base.less | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index 418d669fe..43b44af4b 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -18,7 +18,7 @@
{{range $term := .SearchResultLanguages}} - + {{$term.Language}}
{{$term.Count}}
diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl index 5aa2f8983..984b3fe9e 100644 --- a/templates/repo/search.tmpl +++ b/templates/repo/search.tmpl @@ -18,7 +18,7 @@
{{range $term := .SearchResultLanguages}} - + {{$term.Language}}
{{$term.Count}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index ba3bbff36..1c5626be0 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1228,3 +1228,12 @@ i.icon.centerlock { overflow-x: hidden; text-overflow: ellipsis; } + +.language-label { + display: inline-flex !important; + align-items: center !important; +} + +.language-label .color-icon { + position: static !important; +}