mirror of https://github.com/zulip/zulip.git
Move groups (not just users) from right to left sidebar.
When a user squishes the browser window enough to move users to the left sidebar, we need to move user groups as well. More importantly, when they widen again, we move both of them back in a way that users stay on top of groups. (imported from commit d80722b58190d42a2dfc5247bfffaa7708cde21a)
This commit is contained in:
parent
a2df5f18e9
commit
b7d8f5d43f
|
@ -436,8 +436,10 @@ exports.resize_page_components = function () {
|
|||
popovers.set_userlist_placement("left");
|
||||
sidebar = $(".bottom_sidebar").expectOne();
|
||||
sidebar.append($("#user-list").expectOne());
|
||||
sidebar.append($("#group-pm-list").expectOne());
|
||||
sidebar.append($("#share-the-love").expectOne());
|
||||
$("#user_presences").css("margin", "0px");
|
||||
$("#group-pms").css("margin", "0px");
|
||||
$("#userlist-toggle").css("display", "none");
|
||||
}
|
||||
else if (viewport.width() > 975 && feature_flags.left_side_userlist && narrow_window) {
|
||||
|
@ -445,7 +447,9 @@ exports.resize_page_components = function () {
|
|||
popovers.set_userlist_placement("right");
|
||||
sidebar = $("#right-sidebar").expectOne();
|
||||
sidebar.append($("#user-list").expectOne());
|
||||
sidebar.append($("#group-pm-list").expectOne());
|
||||
$("#user_presences").css("margin", '');
|
||||
$("#group-pms").css("margin", '');
|
||||
$("#userlist-toggle").css("display", '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue