From 6204c99e69d1707a79c5e56685b47310106c60b0 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Fri, 2 Oct 2020 17:49:00 +0200 Subject: Minor scss improvements --- frontend/src/components/fields/extensions/ColorField.scss | 8 ++++---- frontend/src/components/fields/extensions/NumericField.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend/src/components/fields/extensions') diff --git a/frontend/src/components/fields/extensions/ColorField.scss b/frontend/src/components/fields/extensions/ColorField.scss index 6eabbda..26b21f1 100644 --- a/frontend/src/components/fields/extensions/ColorField.scss +++ b/frontend/src/components/fields/extensions/ColorField.scss @@ -1,4 +1,4 @@ -@import '../../../colors.scss'; +@import "../../../colors.scss"; .color-field { .color-input { @@ -9,8 +9,8 @@ flex: 1; input { - border-bottom-right-radius: 0 !important; border-top-right-radius: 0 !important; + border-bottom-right-radius: 0 !important; } } @@ -20,8 +20,8 @@ .picker-button { font-size: 0.8em; padding: 8px 15px; - border-bottom-right-radius: 5px; border-top-right-radius: 5px; + border-bottom-right-radius: 5px; background-color: $color-primary-1; } } @@ -29,8 +29,8 @@ .color-error { font-size: 0.8em; - color: $color-secondary-0; margin-left: 10px; + color: $color-secondary-0; } } diff --git a/frontend/src/components/fields/extensions/NumericField.js b/frontend/src/components/fields/extensions/NumericField.js index ed81ed7..19a9e46 100644 --- a/frontend/src/components/fields/extensions/NumericField.js +++ b/frontend/src/components/fields/extensions/NumericField.js @@ -21,7 +21,7 @@ class NumericField extends Component { value = value.toString().replace(/[^\d]/gi, ''); let intValue = 0; if (value !== "") { - intValue = parseInt(value); + intValue = parseInt(value, 10); } const valid = (!this.props.validate || (typeof this.props.validate === "function" && this.props.validate(intValue))) && -- cgit v1.2.3-70-g09d2