Skip to content

Commit 87d72fb

Browse files
committed
Table: fix empty slot position
1 parent 1f8c7ba commit 87d72fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/theme-chalk/src/table.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717

1818
// 数据为空
1919
@include e(empty-block) {
20-
position: relative;
2120
min-height: 60px;
2221
text-align: center;
2322
width: 100%;
2423
height: 100%;
24+
display: flex;
25+
justify-content: center;
26+
align-items: center;
2527
}
2628

2729
@include e(empty-text) {
28-
position: absolute;
29-
left: 50%;
30-
top: 50%;
31-
transform: translate(-50%, -50%);
30+
width: 50%;
3231
color: $--color-text-secondary;
3332
}
3433

0 commit comments

Comments
 (0)