mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix: solve form label offset not working in vertical layout issue (#43155)
This commit is contained in:
parent
cc4277eb55
commit
5728abe94e
@ -1,8 +1,8 @@
|
|||||||
import type { CSSObject } from '@ant-design/cssinjs';
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||||||
|
import { resetComponent } from '../../style';
|
||||||
import { genCollapseMotion, zoomIn } from '../../style/motion';
|
import { genCollapseMotion, zoomIn } from '../../style/motion';
|
||||||
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../style';
|
|
||||||
import genFormValidateMotionStyle from './explain';
|
import genFormValidateMotionStyle from './explain';
|
||||||
|
|
||||||
export interface FormToken extends FullToken<'Form'> {
|
export interface FormToken extends FullToken<'Form'> {
|
||||||
@ -389,7 +389,6 @@ const genInlineStyle: GenerateStyle<FormToken> = (token) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({
|
const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({
|
||||||
margin: 0,
|
|
||||||
padding: `0 0 ${token.paddingXS}px`,
|
padding: `0 0 ${token.paddingXS}px`,
|
||||||
whiteSpace: 'initial',
|
whiteSpace: 'initial',
|
||||||
textAlign: 'start',
|
textAlign: 'start',
|
||||||
|
Loading…
Reference in New Issue
Block a user