Skip to content

Commit

Permalink
fix: solve form label offset not working in vertical layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Jun 24, 2023
1 parent 7a7ee61 commit 1efe15f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/form/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CSSObject } from '@ant-design/cssinjs';
import { resetComponent } from '../../style';
import { genCollapseMotion, zoomIn } from '../../style/motion';
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
import { resetComponent } from '../../style';
import genFormValidateMotionStyle from './explain';

export interface FormToken extends FullToken<'Form'> {
Expand Down Expand Up @@ -389,7 +389,6 @@ const genInlineStyle: GenerateStyle<FormToken> = (token) => {
};

const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({
margin: 0,
padding: `0 0 ${token.paddingXS}px`,
whiteSpace: 'initial',
textAlign: 'start',
Expand Down

0 comments on commit 1efe15f

Please sign in to comment.