Forráskód Böngészése

AMBARI-20678. Complete node name is not shown when node name is larger than 17 characters (pallavkul)

pallavkul 8 éve
szülő
commit
a54b62a663

+ 1 - 1
contrib/views/hive20/src/main/resources/ui/app/adapters/application.js

@@ -57,7 +57,7 @@ export default DS.RESTAdapter.extend({
       // In development mode when the UI is served using ember serve the xhr requests are proxied to ambari server
       // by setting the proxyurl parameter in ember serve and for ambari to authenticate the requests, it needs this
       // basic authorization. This is for default admin/admin username/password combination.
-      //headers['Authorization'] = 'Basic YWRtaW46YWRtaW4=';
+      headers['Authorization'] = 'Basic YWRtaW46YWRtaW4=';
       //headers['Authorization'] = 'Basic aGl2ZTpoaXZl';
       //headers['Authorization'] = 'Basic ZGlwYXlhbjpkaXBheWFu';
     }

+ 7 - 0
contrib/views/hive20/src/main/resources/ui/app/styles/app.scss

@@ -977,3 +977,10 @@ rect.operator__box {
 .CodeMirror-scroll {
   padding-bottom: 20px;
 }
+
+.ellipsis-node {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  width: 100px;
+}

+ 2 - 2
contrib/views/hive20/src/main/resources/ui/app/utils/hive-explainer/renderer.js

@@ -159,7 +159,7 @@ function getRenderer(type, isSingleReducer) {
             <i class='fa ${getOperatorIcon(d._operator)}' aria-hidden='true'></i>
           </div>
           <div class='operator-body' style='margin-left: 10px;'>
-            <div>${getOperatorLabel(d, isSingleReducer)}</div>
+            <div class="ellipsis-node" title=${getOperatorLabel(d, isSingleReducer)}>${getOperatorLabel(d, isSingleReducer)}</div>
             ${(d['limit:'] && d['limit:'] > -1) ? '<div><span style="font-weight: lighter;">Limit:</span> ' + d['limit:'] + ' </div>' : ''}
           </div>
         </div>
@@ -175,7 +175,7 @@ function getRenderer(type, isSingleReducer) {
           <i class='fa ${getOperatorIcon(d._operator)}' aria-hidden='true'></i>
         </div>
         <div class='operator-body' style='margin-left: 10px;'>
-          <div>${getOperatorLabel(d, isSingleReducer)}</div>
+          <div class="ellipsis-node" title=${getOperatorLabel(d, isSingleReducer)}>${getOperatorLabel(d, isSingleReducer)}</div>
           ${stats}
         </div>
       </div>