From 46f430c59a624d9eb15cd86fcdac8fd528853d42 Mon Sep 17 00:00:00 2001 From: sokumon Date: Tue, 31 Dec 2024 18:31:46 +0530 Subject: [PATCH] fix: centered app label , logo size fix in apps switcher menu --- frappe/public/js/frappe/ui/apps_switcher.js | 2 +- frappe/public/scss/desk/sidebar.scss | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/ui/apps_switcher.js b/frappe/public/js/frappe/ui/apps_switcher.js index cfec6a07f6..d51c4e817a 100644 --- a/frappe/public/js/frappe/ui/apps_switcher.js +++ b/frappe/public/js/frappe/ui/apps_switcher.js @@ -16,7 +16,7 @@ frappe.ui.AppsSwitcher = class AppsSwitcher { this.app_switcher_menu.addClass("hidden"); // hide any expanded menus as they leave a blank space in the sidebar - // this.sidebar_wrapper.find(".drop-icon[data-state='opened'").click(); + this.sidebar_wrapper.find(".drop-icon[data-state='opened'").click(); }); } create_app_data_map() { diff --git a/frappe/public/scss/desk/sidebar.scss b/frappe/public/scss/desk/sidebar.scss index ccdfe21471..a4edf2af32 100644 --- a/frappe/public/scss/desk/sidebar.scss +++ b/frappe/public/scss/desk/sidebar.scss @@ -252,6 +252,7 @@ body { } .sidebar-item-label { display: flex; + align-items: center; } .sidebar-item-control { display: block; @@ -364,9 +365,10 @@ body { align-items: center; gap: var(--margin-sm); .sidebar-item-icon { + line-height: 0px; .app-logo { width: 16px; - width: 16px; + height: 16px; } } }