Files
redash/client/app/styles/formStyle.ts
Gabriel Dutra b326d36ae8 Update Organization Settings (#5114)
* Update Organization Settings

* Cypress: Update tab naming
2020-08-19 13:09:28 +03:00

19 lines
614 B
TypeScript

import { FormProps } from "antd/lib/form/Form";
import { FormItemProps } from "antd/lib/form/FormItem";
import "./formStyle.less";
export function getHorizontalFormProps(): FormProps {
return {
labelCol: { xs: { span: 24 }, sm: { span: 6 }, lg: { span: 4 } },
wrapperCol: { xs: { span: 24 }, sm: { span: 12 }, lg: { span: 10 } },
layout: "horizontal",
className: "ant-form-horizontal--labels-left",
};
}
export function getHorizontalFormItemWithoutLabelProps(): FormItemProps {
return {
wrapperCol: { xs: { span: 24 }, sm: { span: 12, offset: 6 }, lg: { span: 12, offset: 4 } },
};
}