Skip to content

Commit

Permalink
Merge pull request #891 from oceanbase/dengfuping-dev-master
Browse files Browse the repository at this point in the history
improve(design): Table empty height in Popover and Tooltip
  • Loading branch information
dengfuping authored Dec 14, 2024
2 parents 3e82320 + efca0dd commit 76de7b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/design/src/table/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ export const genTableStyle: GenerateStyle<TableToken> = (token: TableToken): CSS
padding: 0,
},
},

// Popover、Tooltip 等弹出层中的表格空状态高度设为自动,避免高度过大撑高弹出层
[`${antCls}-popover, ${antCls}-tooltip`]: {
[`${componentCls} ${componentCls}-tbody`]: {
[`${componentCls}-empty-wrapper`]: {
minHeight: 'auto',
},
},
},
};
};

Expand Down

0 comments on commit 76de7b0

Please sign in to comment.