set height of typeahead menu to 600px max

This commit is contained in:
Uwe Steinmann 2024-04-01 11:32:34 +02:00
parent 060c5f6a00
commit da664f2948
2 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ function initMost() {
* for each hit and render could only process strings.
* */
$("#searchfield").typeahead({ /* {{{ */
menu: '<ul class="typeahead dropdown-menu" style="max-height: 600px; overflow-y: auto;"></ul>',
minLength: 3,
items: 100, /* the query will limit the number of hits */
source: function(query, process) {

View File

@ -93,7 +93,7 @@ function initMost() {
* for each hit and render could only process strings.
* */
$("#searchfield").typeahead({ /* {{{ */
menu: '<div class="typeahead dropdown-menu" style="max-height: 500px; overflow-y: auto;"></div>',
menu: '<div class="typeahead dropdown-menu" style="max-height: 600px; overflow-y: auto;"></div>',
item: '<a class="dropdown-item" href="#"></a>',
itemtag: 'a',
minLength: 3,