Skip to content

Commit

Permalink
fix: Form sm 24 not working (ant-design#44541)
Browse files Browse the repository at this point in the history
* fix: Form sm 24 not working

* chore: comment it
  • Loading branch information
zombieJ authored Aug 31, 2023
1 parent a265257 commit d0cc758
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions components/form/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ const genFormItemStyle: GenerateStyle<FormToken> = (token) => {
};

const genHorizontalStyle: GenerateStyle<FormToken> = (token) => {
const { componentCls, formItemCls, rootPrefixCls } = token;
const { componentCls, formItemCls } = token;

return {
[`${componentCls}-horizontal`]: {
Expand All @@ -338,9 +338,14 @@ const genHorizontalStyle: GenerateStyle<FormToken> = (token) => {
minWidth: 0,
},

// Do not change this to `ant-col-24`! `-24` match all the responsive rules
// https://github.com/ant-design/ant-design/issues/32980
[`${formItemCls}-label.${rootPrefixCls}-col-24 + ${formItemCls}-control`]: {
minWidth: 'unset',
// https://github.com/ant-design/ant-design/issues/34903
// https://github.com/ant-design/ant-design/issues/44538
[`${formItemCls}-label[class$='-24'], ${formItemCls}-label[class*='-24 ']`]: {
[`& + ${formItemCls}-control`]: {
minWidth: 'unset',
},
},
},
};
Expand Down

0 comments on commit d0cc758

Please sign in to comment.