Skip to content

Commit 7adc2e3

Browse files
committed
Table: update table header cell style
1 parent 10592d1 commit 7adc2e3

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

packages/theme-chalk/src/table.scss

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,30 +185,22 @@
185185
}
186186

187187
th {
188-
white-space: nowrap;
189188
overflow: hidden;
190189
user-select: none;
191190
background-color: $--table-header-background-color;
192191

193-
div {
192+
> .cell {
194193
display: inline-block;
195-
padding-left: 10px;
196-
padding-right: 10px;
197-
line-height: 40px;
198194
box-sizing: border-box;
199-
overflow: hidden;
200-
white-space: nowrap;
201-
text-overflow: ellipsis;
202-
}
203-
204-
> .cell {
205195
position: relative;
206196
word-wrap: normal;
207197
text-overflow: ellipsis;
208-
display: inline-block;
209198
vertical-align: middle;
199+
white-space: nowrap;
200+
padding-left: 10px;
201+
padding-right: 10px;
202+
line-height: 40px;
210203
width: 100%;
211-
box-sizing: border-box;
212204

213205
&.highlight {
214206
color: $--color-primary;

0 commit comments

Comments
 (0)