From: Wouter Admiraal Date: Thu, 6 Oct 2022 12:03:02 +0000 (+0200) Subject: [NO JIRA] Center quality gate badge text X-Git-Tag: 9.7.0.61563~113 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79ea8f26d6a820898e950c6980ffe121e212d9e4;p=sonarqube.git [NO JIRA] Center quality gate badge text --- diff --git a/server/sonar-web/src/main/js/apps/component-measures/style.css b/server/sonar-web/src/main/js/apps/component-measures/style.css index 91aa60374a3..c76bad10025 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/style.css +++ b/server/sonar-web/src/main/js/apps/component-measures/style.css @@ -114,7 +114,6 @@ button.search-navigator-facet { .domain-measures-value .level { height: 18px; - line-height: 18px; border-radius: 18px; margin-top: -2px; margin-bottom: -2px; diff --git a/server/sonar-web/src/main/js/components/ui/Level.css b/server/sonar-web/src/main/js/components/ui/Level.css index 96a246bc659..c8f8b8a2900 100644 --- a/server/sonar-web/src/main/js/components/ui/Level.css +++ b/server/sonar-web/src/main/js/components/ui/Level.css @@ -18,13 +18,14 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ .level { - display: inline-block; + display: inline-flex; + align-items: center; + justify-content: center; width: auto; min-width: 80px; padding-left: 9px; padding-right: 9px; height: var(--controlHeight); - line-height: var(--controlHeight); border: 1px solid var(--blacka38); border-radius: var(--controlHeight); box-sizing: border-box; @@ -32,7 +33,6 @@ letter-spacing: 0.02em; font-size: var(--baseFontSize); font-weight: 400; - text-align: center; } .level-small { @@ -43,7 +43,6 @@ margin-top: -1px; margin-bottom: -1px; height: var(--smallControlHeight); - line-height: var(--smallControlHeight); font-size: var(--smallFontSize); font-weight: bold; }