opens up margin below grouped field types
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
.field-type.array {
|
||||
background: white;
|
||||
margin-bottom: base(2);
|
||||
|
||||
&__add-button-wrap {
|
||||
margin-left: base(0);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
@import '../../../../scss/styles.scss';
|
||||
|
||||
.field-type.blocks {
|
||||
margin-bottom: base(2);
|
||||
|
||||
&__add-button-wrap {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -10,8 +10,6 @@ const RelationshipCell = (props) => {
|
||||
|
||||
const [data, setData] = useState();
|
||||
|
||||
console.log(cellData);
|
||||
|
||||
useEffect(() => {
|
||||
const hasManyRelations = Array.isArray(relationTo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user