From 7b757f90537d99f1863407dfd2667874561d53aa Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 14 Dec 2017 12:20:38 +0100 Subject: SONAR-10188 Update project/organization header --- .../src/main/js/components/common/BranchStatus.css | 3 ++ .../src/main/js/components/common/BranchStatus.tsx | 10 +++--- .../__snapshots__/BranchStatus-test.tsx.snap | 42 +++++++++++++++------- 3 files changed, 38 insertions(+), 17 deletions(-) (limited to 'server/sonar-web/src/main/js/components/common') diff --git a/server/sonar-web/src/main/js/components/common/BranchStatus.css b/server/sonar-web/src/main/js/components/common/BranchStatus.css index ccfccb351f1..ac0a177c6a5 100644 --- a/server/sonar-web/src/main/js/components/common/BranchStatus.css +++ b/server/sonar-web/src/main/js/components/common/BranchStatus.css @@ -1,5 +1,8 @@ .branch-status { + display: flex; + align-items: center; min-width: 64px; + line-height: calc(2 * var(--gridSize)); text-align: right; } diff --git a/server/sonar-web/src/main/js/components/common/BranchStatus.tsx b/server/sonar-web/src/main/js/components/common/BranchStatus.tsx index bb9069bc234..e0e4fa55b1d 100644 --- a/server/sonar-web/src/main/js/components/common/BranchStatus.tsx +++ b/server/sonar-web/src/main/js/components/common/BranchStatus.tsx @@ -44,26 +44,26 @@ export default function BranchStatus({ branch, concise = false }: Props) { const indicatorColor = totalIssues > 0 ? 'red' : 'green'; return concise ? ( -