From 5480fb1dda7d8efa2db10f1e3605464aaece04ec Mon Sep 17 00:00:00 2001 From: hetech Date: Fri, 6 Sep 2019 11:13:39 +0800 Subject: [PATCH] Table: update table header cell style (#17284) --- packages/theme-chalk/src/table.scss | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/packages/theme-chalk/src/table.scss b/packages/theme-chalk/src/table.scss index 32ee8a189..319c5d135 100644 --- a/packages/theme-chalk/src/table.scss +++ b/packages/theme-chalk/src/table.scss @@ -185,30 +185,18 @@ } th { - white-space: nowrap; overflow: hidden; user-select: none; background-color: $--table-header-background-color; - div { + > .cell { display: inline-block; + box-sizing: border-box; + position: relative; + vertical-align: middle; padding-left: 10px; padding-right: 10px; - line-height: 40px; - box-sizing: border-box; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - > .cell { - position: relative; - word-wrap: normal; - text-overflow: ellipsis; - display: inline-block; - vertical-align: middle; width: 100%; - box-sizing: border-box; &.highlight { color: $--color-primary;