mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
@@ -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)}),
|
||||
|
||||
Reference in New Issue
Block a user