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

HUE-6859 [search] Fix default size of the search field

Enrico Berti 8 éve
szülő
commit
56a4cef

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


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

@@ -483,3 +483,7 @@ ul.errorlist {
 .datepicker {
   z-index: 1051;
 }
+
+.input-almost-xxlarge {
+  width: 450px;
+}

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -144,7 +144,7 @@ from desktop.views import commonheader, commonfooter, _ko
       </div>
 
       <span data-bind="foreach: query.qs">
-        <input data-bind="clearable: q, valueUpdate:'afterkeydown', typeahead: { target: q, nonBindableSource: queryTypeahead, multipleValues: true, multipleValuesSeparator: ':', extraKeywords: 'AND OR TO', completeSolrRanges: true }, css:{'input-xxlarge': $root.query.qs().length == 1, 'input-medium': $root.query.qs().length == 2, 'input-small': $root.query.qs().length > 2, 'flat-left': $index() === 0}" maxlength="4096" type="text" class="search-query">
+        <input data-bind="clearable: q, valueUpdate:'afterkeydown', typeahead: { target: q, nonBindableSource: queryTypeahead, multipleValues: true, multipleValuesSeparator: ':', extraKeywords: 'AND OR TO', completeSolrRanges: true }, css:{'input-almost-xxlarge': $root.query.qs().length == 1, 'input-medium': $root.query.qs().length < 3, 'input-small': $root.query.qs().length >= 3, 'flat-left': $index() === 0}" maxlength="4096" type="text" class="search-query">
         <!-- ko if: $index() >= 1 -->
         <a class="btn flat-left" href="javascript:void(0)" data-bind="click: $root.query.removeQ"><i class="fa fa-minus"></i></a>
         <!-- /ko -->

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott