Browse Source

Table: update table header cell style (#17284)

hetech 6 years ago
parent
commit
5480fb1dda
1 changed files with 3 additions and 15 deletions
  1. 3 15
      packages/theme-chalk/src/table.scss

+ 3 - 15
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;
-      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;
+      padding-left: 10px;
+      padding-right: 10px;
       width: 100%;
-      box-sizing: border-box;
 
       &.highlight {
         color: $--color-primary;