From: Wouter Admiraal Date: Fri, 7 Dec 2018 08:53:36 +0000 (+0100) Subject: SONARCLOUD-210 Correct language icons on Azure DevOps page X-Git-Tag: 7.5~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe0c2ee262ecaf1ece4dfe1e12e2ee4bd43582af;p=sonarqube.git SONARCLOUD-210 Correct language icons on Azure DevOps page --- 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 {