mirror of https://github.com/zulip/zulip.git
resize: Resize sidebars when toggling user search.
It's possible we want to do the same for the stream search, but this PR is highly focused on the buddy list and GROUP PMs widget.
This commit is contained in:
parent
7ed47e83fe
commit
87c36cdb26
|
@ -52,6 +52,7 @@ const _stream_popover = {
|
|||
};
|
||||
|
||||
const _resize = {
|
||||
resize_sidebars: () => {},
|
||||
resize_page_components: () => {},
|
||||
};
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ const user_search = function (opts) {
|
|||
|
||||
self.hide_widget = function () {
|
||||
$widget.addClass('notdisplayed');
|
||||
resize.resize_sidebars();
|
||||
};
|
||||
|
||||
self.show_widget = function () {
|
||||
|
@ -54,6 +55,7 @@ const user_search = function (opts) {
|
|||
// when the user wants to search.
|
||||
popovers.hide_all_except_sidebars();
|
||||
$widget.removeClass('notdisplayed');
|
||||
resize.resize_sidebars();
|
||||
};
|
||||
|
||||
self.widget_shown = function () {
|
||||
|
|
Loading…
Reference in New Issue