diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-02-15 17:52:52 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-03-06 11:30:42 +0100 |
commit | 79a32b89b9d41df6cb8f1f96980d2591a5ecb192 (patch) | |
tree | 3b800b0d0f827ab655dbc3cf356b5058b490bdf8 /server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx | |
parent | 769d66fa99847e63cf5536f128b53a37e7a5a430 (diff) | |
download | sonarqube-79a32b89b9d41df6cb8f1f96980d2591a5ecb192.tar.gz sonarqube-79a32b89b9d41df6cb8f1f96980d2591a5ecb192.zip |
SONARCLOUD-380 Rework modal styling of SC and SQ
* Update modal-fields
* Update form-fields styling
* Update modal-fields usage in extensions
* Clean css
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx index 7284f830995..92f9219f92c 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx @@ -107,7 +107,8 @@ export default class ConditionModal extends React.PureComponent<Props, State> { confirmDisable={metric === undefined} header={header} onClose={onClose} - onConfirm={this.handleFormSubmit}> + onConfirm={this.handleFormSubmit} + size="small"> {this.state.errorMessage && <Alert variant="error">{this.state.errorMessage}</Alert>} <div className="modal-field"> <label htmlFor="condition-metric">{translate('quality_gates.conditions.metric')}</label> @@ -118,7 +119,7 @@ export default class ConditionModal extends React.PureComponent<Props, State> { </div> {metric && ( <> - <div className="modal-field"> + <div className="modal-field display-inline-block"> <label htmlFor="condition-operator"> {translate('quality_gates.conditions.operator')} </label> @@ -128,7 +129,7 @@ export default class ConditionModal extends React.PureComponent<Props, State> { op={op} /> </div> - <div className="modal-field"> + <div className="modal-field display-inline-block spacer-left"> <label htmlFor="condition-threshold"> {translate('quality_gates.conditions.error')} </label> |