From: Grégoire Aubert Date: Wed, 17 Jan 2018 08:35:23 +0000 (+0100) Subject: Fix styling issue on some commands in the project creation tutorial X-Git-Tag: 7.5~1788 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b14f6c7ac546061aed4f2a5d8e33e9853c509000;p=sonarqube.git Fix styling issue on some commands in the project creation tutorial --- diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/ClangGCC.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/ClangGCC.js index a7c32e421fc..249c8cc2976 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/ClangGCC.js +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/ClangGCC.js @@ -67,8 +67,8 @@ export default function ClangGCC(props /*: Props */) { __html: translate('onboarding.analysis.sq_scanner.execute.text') }} /> - - + +

, - isWindows?: boolean + isOneLine?: boolean }; */ @@ -36,13 +36,13 @@ export default class Command extends React.PureComponent { /*:: props: Props; */ render() { - const { command, isWindows } = this.props; + const { command, isOneLine } = this.props; const commandArray = Array.isArray(command) ? command.filter(line => line != null) : [command]; - const finalCommand = isWindows ? commandArray.join(' ') : commandArray.join(s); + const finalCommand = isOneLine ? commandArray.join(' ') : commandArray.join(s); return (

+ className={classNames('onboarding-command', { 'onboarding-command-oneline': isOneLine })}>
{finalCommand}
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/DotNet.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/DotNet.js index 8e2832d1bdd..493eb4f690b 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/DotNet.js +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/commands/DotNet.js @@ -58,9 +58,9 @@ export default function DotNet(props /*: Props */) { __html: translate('onboarding.analysis.msbuild.execute.text') }} /> - - - + + +

- - - + + +

- +