Merge pull request #31888 from sokumon/better-sidebar

fix(minor): improvements to sidebar
This commit is contained in:
Soham Kulkarni 2025-03-31 23:59:27 +05:30 committed by GitHub
commit ddf16cde42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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();
}

View file

@ -126,8 +126,6 @@ body {
.sidebar-items {
width: 224px;
padding-left: 1px;
padding-right: 1px;
width: 100%;
}