Browse Source

style: fix List item padding when enable `grid` (#40806)

- Reduce the horizontal padding of list items from `${token.paddingContentHorizontalLG}px` to `0`

[components/list/style/index.ts]
- Reduce the horizontal padding of list items from `${token.paddingContentHorizontalLG}px` to `0`
pull/40803/head
afc163 2 years ago
committed by GitHub
parent
commit
c32e5e38ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/list/style/index.ts

2
components/list/style/index.ts

@ -351,7 +351,7 @@ export default genComponentStyleHook(
const listToken = mergeToken<ListToken>(token, {
listBorderedCls: `${token.componentCls}-bordered`,
minHeight: token.controlHeightLG,
listItemPadding: `${token.paddingContentVertical}px ${token.paddingContentHorizontalLG}px`,
listItemPadding: `${token.paddingContentVertical}px 0`,
listItemPaddingSM: `${token.paddingContentVerticalSM}px ${token.paddingContentHorizontal}px`,
listItemPaddingLG: `${token.paddingContentVerticalLG}px ${token.paddingContentHorizontalLG}px`,
});

Loading…
Cancel
Save