From fe0c2ee262ecaf1ece4dfe1e12e2ee4bd43582af Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Fri, 7 Dec 2018 09:53:36 +0100 Subject: [PATCH] SONARCLOUD-210 Correct language icons on Azure DevOps page --- .../js/apps/about/sonarcloud/AzureDevOps.tsx | 36 +++++++++---------- .../main/js/apps/about/sonarcloud/style.css | 1 + 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/AzureDevOps.tsx b/server/sonar-web/src/main/js/apps/about/sonarcloud/AzureDevOps.tsx index da9bea478da..1ad9fa7bc80 100644 --- a/server/sonar-web/src/main/js/apps/about/sonarcloud/AzureDevOps.tsx +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/AzureDevOps.tsx @@ -25,6 +25,15 @@ import { isLoggedIn } from '../../../helpers/users'; import { getBaseUrl } from '../../../helpers/urls'; import './style.css'; +const LANGUAGES = [ + { name: 'JavaScript', file: 'js.svg', width: 60 }, + { name: 'TypeScript', file: 'ts.svg', width: 130 }, + { name: 'C#', file: 'csharp.svg', width: 60 }, + { name: 'C++', file: 'c-c-plus-plus.svg', width: 53 }, + { name: 'T-SQL', file: 't-sql.svg', width: 80 }, + { name: 'VB', file: 'vb.svg', width: 70 } +]; + export default function AzureDevOps() { return ( @@ -116,24 +125,15 @@ export default function AzureDevOps() {

Analyze .NET languages and more

    -
  • - C# -
  • -
  • - VB -
  • -
  • - JavaScript -
  • -
  • - TypeScript -
  • -
  • - T-SQL -
  • -
  • - C++ -
  • + {LANGUAGES.map(language => ( +
  • + {language.name} +
  • + ))}
diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/style.css b/server/sonar-web/src/main/js/apps/about/sonarcloud/style.css index 6a5737a9102..995a71778fd 100644 --- a/server/sonar-web/src/main/js/apps/about/sonarcloud/style.css +++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/style.css @@ -313,6 +313,7 @@ display: flex; justify-content: center; margin-top: 20px; + align-items: center; } .sc-languages-list > li { -- 2.39.5