onNcdChanged={this.handleNcdChanged}
/>
- <div className="sw-flex sw-flex-row sw-gap-2 sw-mt-4">
+ <div className="sw-flex sw-flex-row sw-gap-4 sw-mt-4">
<ButtonLink onClick={this.handleGoBack}>{translate('back')}</ButtonLink>
<SubmitButton
onClick={this.handleProjectCreation}
padding-top: 2px;
}
-.project-baseline-selector .general-setting {
- margin-left: 7px;
-}
-
.branch-baseline-selector > hr {
margin: 0 calc(-4 * var(--gridSize)) calc(4 * var(--gridSize));
}
return (
<>
- <div className="general-setting display-flex-start">
- <span className="sw-font-bold flex-0">{setting}: </span>
- <span>
- {description} {useCase}
- </span>
+ <div className="sw-flex sw-flex-col sw-gap-2 sw-max-w-[800px]">
+ <span className="sw-font-bold flex-0">{setting}</span>
+ {isGlobalNcdCompliant && (
+ <>
+ <span>{description}</span>
+ <span>{useCase}</span>
+ </>
+ )}
</div>
{!isGlobalNcdCompliant && (
<Alert variant="warning" className="sw-mt-4 sw-max-w-[800px]">
new_code_definition.specific_setting=Define a specific setting for this project
new_code_definition.compliance.warning.title.global=Your global new code definition is not compliant with the Clean as You Code methodology
-new_code_definition.compliance.warning.explanation=Please ask an administrator to update the global new code definition before switching back to it.
-new_code_definition.compliance.warning.explanation.admin=Please update the global new code definition under {link} before switching back to it.
+new_code_definition.compliance.warning.explanation=Please ask an administrator to update the global new code definition before you can use it for your project.
+new_code_definition.compliance.warning.explanation.admin=Please update the global new code definition under {link} before you can use it for your project.
new_code_definition.compliance.warning.explanation.action.admin.link=General Settings > New Code
new_code_definition.previous_version=Previous version