fix: unable to set minimum width for subtable labels in horizontal mode (#5719)

This commit is contained in:
Katherine 2024-11-26 20:51:34 +08:00 committed by GitHub
parent 818c509d58
commit 27aa5238fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,11 @@ const FormComponent: React.FC<FormProps> = (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);
}
}
}
`}
>