mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
navbar: Update searchbox event listeners behaviour.
These are some UI and UX changes mainly related for when to display the search pills and when to dispay the narrow description in the search bar.
This commit is contained in:
@@ -172,8 +172,11 @@ exports.open_search_bar_and_close_narrow_description = function () {
|
||||
};
|
||||
|
||||
exports.close_search_bar_and_open_narrow_description = function () {
|
||||
$(".navbar-search").removeClass("expanded");
|
||||
$("#tab_list").removeClass("hidden");
|
||||
const filter = narrow_state.filter();
|
||||
if (!(filter && !filter.is_common_narrow())) {
|
||||
$(".navbar-search").removeClass("expanded");
|
||||
$("#tab_list").removeClass("hidden");
|
||||
}
|
||||
};
|
||||
|
||||
window.tab_bar = exports;
|
||||
|
||||
Reference in New Issue
Block a user