mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
Fix number of topic suggestions
(imported from commit 08096cc0e27054dd11f394d5b642b72ec8724b1b)
This commit is contained in:
@@ -240,6 +240,8 @@ function get_topic_suggestions(query, query_operators, max_num) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
topics = topics.slice(0, max_num);
|
||||||
|
|
||||||
// Just use alphabetical order. While recency and read/unreadness of
|
// Just use alphabetical order. While recency and read/unreadness of
|
||||||
// subjects do matter in some contexts, you can get that from the left sidebar,
|
// subjects do matter in some contexts, you can get that from the left sidebar,
|
||||||
// and I'm leaning toward high scannability for autocompletion. I also don't
|
// and I'm leaning toward high scannability for autocompletion. I also don't
|
||||||
@@ -294,7 +296,7 @@ exports.initialize = function () {
|
|||||||
return obj.search_string;
|
return obj.search_string;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
items: 20,
|
items: 50,
|
||||||
highlighter: function (item) {
|
highlighter: function (item) {
|
||||||
var obj = search_object[item];
|
var obj = search_object[item];
|
||||||
return obj.description;
|
return obj.description;
|
||||||
|
|||||||
Reference in New Issue
Block a user