fix: collapse sidebar on picking workspace (#24312)
* fix: improve mobile design * chore: revert other changes --------- Co-authored-by: Safwan Samsudeen <safwansamsudeen.c@gmail.com>
This commit is contained in:
parent
880c01c4ae
commit
d5266fb07a
1 changed files with 5 additions and 0 deletions
|
|
@ -185,6 +185,11 @@ frappe.views.Workspace = class Workspace {
|
|||
sidebar_section.addClass("hidden");
|
||||
}
|
||||
|
||||
$(".item-anchor").on("click", () => {
|
||||
$(".list-sidebar.hidden-xs.hidden-sm").removeClass("opened");
|
||||
$(".close-sidebar").css("display", "none");
|
||||
});
|
||||
|
||||
if (
|
||||
sidebar_section.find(".sidebar-item-container").length &&
|
||||
sidebar_section.find("> [item-is-hidden='0']").length == 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue