瀏覽代碼

Merge pull request #216 from QingWei-Li/fix/table-style

Table: fix cell style,fixed #204
baiyaaaaa 8 年之前
父節點
當前提交
73c50502f2
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 6
      packages/theme-default/src/table.css

+ 1 - 0
CHANGELOG.md

@@ -5,6 +5,7 @@
 *2016-XX-XX*
 
 - 修复 Tabs 切换后 Tab-panel 被销毁的问题
+- 修复 Table Cell 的样式, #204
 
 ### 1.0.0-rc.5
 

+ 1 - 6
packages/theme-default/src/table.css

@@ -50,6 +50,7 @@
 
     & th {
       white-space: nowrap;
+      overflow: hidden;
     }
 
     & th, td {
@@ -57,7 +58,6 @@
       max-width: 250px;
       min-width: 0;
       box-sizing: border-box;
-      overflow: hidden;
       text-overflow: ellipsis;
       vertical-align: middle;
       position: relative;
@@ -102,10 +102,6 @@
       box-sizing: border-box;
     }
 
-    & td div {
-      display: block;
-    }
-
     @e fixed {
       position: absolute;
       top: 0;
@@ -180,7 +176,6 @@
     & th > .cell {
       position: relative;
       word-wrap: normal;
-      overflow: hidden;
       text-overflow: ellipsis;
       display: inline-block;
       line-height: 20px;