Pārlūkot izejas kodu

AMBARI-2682. Security wizard - configure services: "Undo" appears over the realm name when editing properties. (Andrii Babiichuk via yusaku)

Yusaku Sako 12 gadi atpakaļ
vecāks
revīzija
0ef3c9363e

+ 9 - 0
ambari-web/app/styles/application.less

@@ -661,6 +661,15 @@ h1 {
     padding-left: 8px;
     padding-right: 8px;
   }
+  .with-unit{
+    input{
+      width:auto;
+    }
+    .add-on{
+      overflow: hidden;
+      max-width:250px;
+    }
+  }
 }
 
 .running-host-components-table{

+ 1 - 1
ambari-web/app/views/wizard/controls_view.js

@@ -90,7 +90,7 @@ App.ServiceConfigTextField = Ember.TextField.extend(App.ServiceConfigPopoverSupp
  */
 App.ServiceConfigTextFieldWithUnit = Ember.View.extend(App.ServiceConfigPopoverSupport, {
   valueBinding: 'serviceConfig.value',
-  classNames: [ 'input-append' ],
+  classNames: ['input-append','with-unit'],
   placeholderBinding: 'serviceConfig.defaultValue',
 
   template: Ember.Handlebars.compile('{{view App.ServiceConfigTextField serviceConfigBinding="view.serviceConfig" isPopoverEnabled="false"}}<span class="add-on">{{view.serviceConfig.unit}}</span>'),