Преглед изворни кода

HUE-6582 [assist] Add DB prefix to tables in the right assistant

It will cut from the left when too long as there's no horizontal scroll.
Johan Ahlen пре 8 година
родитељ
комит
75a2d04

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 4 - 0
desktop/core/src/desktop/static/desktop/less/hue-assist.less

@@ -911,6 +911,10 @@
 
     li {
       padding: 0 10px;
+
+      direction: rtl;
+      text-align: left;
+      .nowrap-ellipsis();
     }
   }
 

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -1817,7 +1817,7 @@ from notebook.conf import get_ordered_interpreters
           <!-- ko if: activeTables().length > 0 -->
           <ul class="assist-active-tables" data-bind="foreach: activeTables">
             <li data-bind="event: { mouseover: function (data, event) { showContextPopoverDelayed(data, event, 'left'); }, mouseout: clearContextPopoverDelay },">
-              <a class="inactive-action-dark" href="javascript:void(0)" data-bind="click: function (data, event) { showContextPopover(data, event, 'left') }, text: name"></a>
+              <a class="inactive-action-dark" href="javascript:void(0)" data-bind="click: function (data, event) { showContextPopover(data, event, 'left') }, text: database.name + '.' + name"></a>
             </li>
           </ul>
           <!-- /ko -->

Неке датотеке нису приказане због велике количине промена