Merge pull request #31888 from sokumon/better-sidebar
fix(minor): improvements to sidebar
This commit is contained in:
commit
ddf16cde42
2 changed files with 5 additions and 2 deletions
|
|
@ -48,9 +48,14 @@ frappe.ui.Sidebar = class Sidebar {
|
|||
this.$sidebar = this.wrapper.find(".sidebar-items");
|
||||
|
||||
this.wrapper.find(".body-sidebar .collapse-sidebar-link").on("click", () => {
|
||||
if (frappe.is_mobile()) this.apps_switcher.app_switcher_menu.toggleClass("hidden");
|
||||
this.toggle_sidebar();
|
||||
});
|
||||
|
||||
this.wrapper.find(".overlay").on("click", () => {
|
||||
this.close_sidebar();
|
||||
});
|
||||
|
||||
this.apps_switcher = new frappe.ui.AppsSwitcher(this);
|
||||
this.apps_switcher.create_app_data_map();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,8 +126,6 @@ body {
|
|||
|
||||
.sidebar-items {
|
||||
width: 224px;
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue