Просмотр исходного кода

HUE-9187 [editor] Larger limit box auto growing to support two more digits

e.g. 500000
Romain 5 лет назад
Родитель
Сommit
f16b12350f

+ 3 - 3
desktop/core/src/desktop/js/apps/notebook2/components/ko.executableActions.js

@@ -40,10 +40,10 @@ const TEMPLATE = `
       <button class="btn btn-danger btn-mini btn-execute disable-feedback" data-test="stop" data-bind="click: stop"><i class="fa fa-stop fa-fw"></i>
       <!-- ko ifnot: waiting -->
         ${ I18n('Stop') }
-      <!-- /ko --> 
+      <!-- /ko -->
       <!-- ko if: waiting -->
         ${ I18n('Stop batch') }
-      <!-- /ko --> 
+      <!-- /ko -->
       </button>
       <!-- /ko -->
       <!-- ko if: stopping -->
@@ -52,7 +52,7 @@ const TEMPLATE = `
     <!-- /ko -->
   </div>
   <form autocomplete="off" class="inline-block margin-left-10">
-    <input class="input-small limit-input" type="text" ${ window.PREVENT_AUTOFILL_INPUT_ATTRS } placeholder="${ I18n('Limit') }" data-bind="textInput: limit">
+    <input class="input-small limit-input" type="number" ${ window.PREVENT_AUTOFILL_INPUT_ATTRS } placeholder="${ I18n('Limit') }" data-bind="textInput: limit, autogrowInput: { minWidth: 50, maxWidth: 80, comfortZone: 25 }">
   </form>
 </div>
 `;

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 0 - 1
desktop/core/src/desktop/static/desktop/less/components/hue-snippet-execute-actions.less

@@ -43,7 +43,6 @@
   .limit-input {
     border-radius: 2px;
     height: 13px;
-    width: 32px;
     margin: 0 5px;
     padding: 5px 6px;
   }

Некоторые файлы не были показаны из-за большого количества измененных файлов