Procházet zdrojové kódy

[core] Style Hive autocomplete to avoid word wrap

Enrico Berti před 10 roky
rodič
revize
dc4b77e82b

+ 4 - 0
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -1996,3 +1996,7 @@ pre {
   border-left: 5px solid #DDD;
   border-radius: 0;
 }
+
+.hiveAutocompleteItem {
+  white-space: nowrap;
+}

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/jquery.hiveautocomplete.js

@@ -244,7 +244,7 @@
 
           if (! _isSkipColumns){
             $(_iterable).each(function (cnt, item) {
-              _currentFiles.push('<li class="hiveAutocompleteItem" data-value="' + item + '"><i class="fa '+ _ico +'"></i> ' + item + '</li>');
+              _currentFiles.push('<li class="hiveAutocompleteItem" data-value="' + item + '" title="' + item + '"><i class="fa '+ _ico +'"></i> ' + item + '</li>');
             });
 
             $("#jHueHiveAutocomplete").css("top", _el.offset().top + _el.outerHeight() - 1).css("left", _el.offset().left).width(_el.outerWidth() - 4);