Skip to content

Commit

Permalink
fix: avatar and title are misplaced (ant-design#40395)
Browse files Browse the repository at this point in the history
* fix: avatar and title are misplaced

* fix

* fix

* fix
  • Loading branch information
li-jia-nan authored and RedJue committed Apr 25, 2023
1 parent 841c078 commit dac5dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/list/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CSSObject } from '@ant-design/cssinjs';
import { resetComponent } from '../../style';
import type { FullToken, GenerateStyle } from '../../theme/internal';
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
import { resetComponent } from '../../style';

export interface ComponentToken {
contentWidth: number;
Expand Down Expand Up @@ -284,6 +284,7 @@ const genBaseStyle: GenerateStyle<ListToken> = (token) => {
marginBlockEnd: padding,

[`${componentCls}-item-meta-title`]: {
marginBlockStart: 0,
marginBlockEnd: paddingSM,
color: colorText,
fontSize: token.fontSizeLG,
Expand Down

0 comments on commit dac5dbe

Please sign in to comment.