added formWrapper style

This commit is contained in:
srgooglo 2022-05-13 21:35:49 +02:00
parent f42a05c3c6
commit 704500f50a
2 changed files with 26 additions and 16 deletions

View File

@ -16,6 +16,8 @@ import {
} from "antd"
import HeadShake from "react-reveal/HeadShake"
import "./index.less"
const allComponents = {
Input,
Button,
@ -169,8 +171,9 @@ export default class FormGenerator extends React.Component {
renderValidationIcon() {
if (this.props.renderLoadingIcon && this.state.validating) {
return <Icons.LoadingOutlined spin style={{ marginTop: "7px" }} />
return <Icons.LoadingOutlined spin style={{ margin: 0 }} />
}
return null
}
@ -376,8 +379,11 @@ export default class FormGenerator extends React.Component {
return null
}
return (
<div>
return <div
key={this.props.id}
id={this.props.id}
className="formWrapper"
>
<Form
hideRequiredMark={this.props.hideRequiredMark ?? false}
name={this.props.name ?? "new_form"}
@ -390,6 +396,5 @@ export default class FormGenerator extends React.Component {
</Form>
{this.renderValidationIcon()}
</div>
)
}
}

View File

@ -0,0 +1,5 @@
.formWrapper {
svg {
margin: 0;
}
}