Skip to content

Commit

Permalink
fix: Descriptions extra padding (ant-design#47737)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored and tanzhenyun committed Mar 29, 2024
1 parent 49fcefa commit 4adf782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/descriptions/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const genBorderedStyle = (token: DescriptionsToken): CSSObject => {
border: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
'> table': {
tableLayout: 'auto',
borderCollapse: 'collapse',
},
[`${componentCls}-row`]: {
borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
Expand Down Expand Up @@ -140,6 +139,7 @@ const genDescriptionStyles: GenerateStyle<DescriptionsToken> = (token) => {
table: {
width: '100%',
tableLayout: 'fixed',
borderCollapse: 'collapse',
},
},
[`${componentCls}-row`]: {
Expand All @@ -155,7 +155,7 @@ const genDescriptionStyles: GenerateStyle<DescriptionsToken> = (token) => {
fontWeight: 'normal',
fontSize: token.fontSize,
lineHeight: token.lineHeight,
textAlign: `start`,
textAlign: 'start',

'&::after': {
content: '":"',
Expand Down

0 comments on commit 4adf782

Please sign in to comment.