Jelajahi Sumber

HUE-6771 [metastore] The table description should have a fixed height in the table page

Enrico Berti 8 tahun lalu
induk
melakukan
8b7eed19b0

File diff ditekan karena terlalu besar
+ 0 - 0
apps/metastore/src/metastore/static/metastore/css/metastore.css


+ 5 - 0
apps/metastore/src/metastore/static/metastore/less/metastore.less

@@ -140,6 +140,11 @@ h2.card-heading {
   font-weight: 400;
 }
 
+.table-description {
+  max-height: 90px;
+  overflow-y: auto;
+}
+
 .acl-panel {
   border-left: 1px solid #e5e5e5;
   padding-top: 6px;

+ 2 - 2
apps/metastore/src/metastore/templates/metastore.mako

@@ -883,12 +883,12 @@ ${ components.menubar(is_embeddable) }
   % if has_write_access:
   <div class="show-inactive-on-hover">
     <a class="inactive-action pointer toggle-editable" title="${ _('Edit the description') }"><i class="fa fa-pencil vertical-align-top"></i></a>
-    <div data-bind="editable: comment, editableOptions: {enabled: true, type: 'wysihtml5', toggle: 'manual', toggleElement: '.toggle-editable', placement: 'bottom', placeholder: '${ _ko('Add a description...') }', emptytext: '${ _ko('No description available') }', inputclass:'input-xlarge', rows: 10 }" class="inline-block margin-left-5">
+    <div data-bind="attr:{ title: comment }, editable: comment, editableOptions: {enabled: true, type: 'wysihtml5', toggle: 'manual', toggleElement: '.toggle-editable', placement: 'bottom', placeholder: '${ _ko('Add a description...') }', emptytext: '${ _ko('No description available') }', inputclass:'input-xlarge', rows: 10 }" class="inline-block margin-left-5 table-description">
       ${ _('Add a description...') }
     </div>
   </div>
   % else:
-    <span data-bind="html: comment"></span>
+    <div data-bind="html: comment, attr:{ title: comment }" class="table-description"></div>
   %endif
 
   <ul class="nav nav-pills margin-top-30">

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini