typeahead: Make menu scrollable with up to 50 options.

To increase the number of options available for the user to pick from,
we increase the limit of options shown to 50 for all typeaheads, and
make the menu scrollable. The max height is set to original height of
the composebox typeahead menu, which fit 8 options or to 95% of the
window height, whichever is smaller.

Fixes: #20620.
This commit is contained in:
N-Shar-ma
2024-06-27 13:51:46 +05:30
committed by Tim Abbott
parent 4cb925a9c8
commit 82c2da8aae
13 changed files with 29 additions and 29 deletions

View File

@@ -169,7 +169,6 @@ function build_page(): void {
language_labels = realm_playground.get_pygments_typeahead_list_for_settings(query);
return [...language_labels.keys()];
},
items: 5,
helpOnEmptyStrings: true,
highlighter_html: (item: string): string =>
render_typeahead_item({primary: language_labels.get(item)}),