fix: collapse button on mobile visible on scroll
This commit is contained in:
parent
1c825e80c6
commit
6974958a75
2 changed files with 6 additions and 0 deletions
|
|
@ -472,4 +472,9 @@ frappe.ui.Sidebar = class Sidebar {
|
|||
this.setup_pages();
|
||||
});
|
||||
}
|
||||
set_height() {
|
||||
$(".body-sidebar").css("height", window.innerHeight + "px");
|
||||
$(".overlay").css("height", window.innerHeight + "px");
|
||||
document.body.style.overflow = "hidden";
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ frappe.ui.toolbar.Toolbar = class {
|
|||
this.bind_events();
|
||||
$(document).trigger("toolbar_setup");
|
||||
$(".navbar-brand .app-logo").on("click", () => {
|
||||
frappe.app.sidebar.set_height();
|
||||
frappe.app.sidebar.toggle_sidebar();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue