diff --git a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx index b4155cdc5..062af58c0 100644 --- a/packages/core/client/src/schema-component/antd/form-v2/Form.tsx +++ b/packages/core/client/src/schema-component/antd/form-v2/Form.tsx @@ -65,6 +65,11 @@ const FormComponent: React.FC = (props) => { margin-right: -${token.marginLG}px; padding-left: ${token.marginLG}px; padding-right: ${token.marginLG}px; + .ant-formily-item-layout-horizontal { + .ant-formily-item-control { + max-width: calc(100% - ${labelWidth}px); + } + } } `} >