Skip to content

Commit

Permalink
Merge pull request #924 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
fix(design): middle and small expandable Table cell height should be correct
  • Loading branch information
dengfuping authored Jan 10, 2025
2 parents 58dae02 + b6e5de3 commit ebc0380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/design/src/table/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export const genTableStyle: GenerateStyle<TableToken> = (token: TableToken): CSS
['td, th']: {
[`&${componentCls}-row-expand-icon-cell`]: {
backgroundColor: colorBgBase,
padding: `${token.paddingSM}px ${token.paddingXS}px`,
// 去掉展开列的 padding,其宽度由 expandable.columnWidth 进行控制,其高度跟随其他列
padding: 0,
},
// 紧跟在选择列或展开列后的第一列,左侧间距减小为 8px
[`&${componentCls}-selection-column, &${componentCls}-row-expand-icon-cell`]: {
Expand Down

0 comments on commit ebc0380

Please sign in to comment.