浏览代码

HUE-8098 [assist] Make sure empty rows have a fixed height in the context popover column samples table

Johan Ahlen 7 年之前
父节点
当前提交
ac7d980

文件差异内容过多而无法显示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


文件差异内容过多而无法显示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


文件差异内容过多而无法显示
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 1 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-popover.less

@@ -425,6 +425,7 @@
   table td.sample-column {
   table td.sample-column {
     max-width: 500px;
     max-width: 500px;
     .nowrap-ellipsis();
     .nowrap-ellipsis();
+    height: 24px;
   }
   }
 }
 }
 
 

+ 1 - 1
desktop/core/src/desktop/templates/ko_components/ko_catalog_entries_table.mako

@@ -126,7 +126,7 @@ from desktop.views import _ko
         </thead>
         </thead>
         <tbody data-bind="foreach: filteredColumnSamples">
         <tbody data-bind="foreach: filteredColumnSamples">
           <tr>
           <tr>
-            <td data-bind="html: $data, attr: { 'title': $data }"></td>
+            <td class="sample-column" data-bind="html: $data, attr: { 'title': $data }"></td>
           </tr>
           </tr>
         </tbody>
         </tbody>
         <!-- ko if: filteredColumnSamples().length === 0 -->
         <!-- ko if: filteredColumnSamples().length === 0 -->

部分文件因为文件数量过多而无法显示