opens up margin below grouped field types

This commit is contained in:
James
2020-07-29 13:47:35 -04:00
parent 97c31faea1
commit 17dfa693ba
5 changed files with 8 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
.field-type.array {
background: white;
margin-bottom: base(2);
&__add-button-wrap {
margin-left: base(0);

View File

@@ -1,6 +1,7 @@
@import '../../../../scss/styles.scss';
.field-type.blocks {
margin-bottom: base(2);
&__add-button-wrap {

View File

@@ -1,6 +1,8 @@
@import '../../../../scss/styles.scss';
.group {
margin-bottom: base(2);
&:hover {
.render-field-gutter__content-container {
box-shadow: #{$style-stroke-width-m} 0px 0px 0px $color-dark-gray;

View File

@@ -22,6 +22,7 @@ const NumberField = (props) => {
readOnly,
style,
width,
step,
} = {},
} = props;
@@ -44,7 +45,7 @@ const NumberField = (props) => {
});
const handleChange = useCallback((e) => {
let val = parseInt(e.target.value, 10);
let val = parseFloat(e.target.value);
if (Number.isNaN(val)) val = '';
setValue(val);
}, [setValue]);
@@ -81,6 +82,7 @@ const NumberField = (props) => {
type="number"
id={path}
name={path}
step={step}
/>
</div>
);
@@ -107,6 +109,7 @@ NumberField.propTypes = {
readOnly: PropTypes.bool,
style: PropTypes.shape({}),
width: PropTypes.string,
step: PropTypes.number,
}),
label: PropTypes.string,
max: PropTypes.number,

View File

@@ -10,8 +10,6 @@ const RelationshipCell = (props) => {
const [data, setData] = useState();
console.log(cellData);
useEffect(() => {
const hasManyRelations = Array.isArray(relationTo);