From 8cd5ad51b159621dc6dedaf77351622bf47b8561 Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Wed, 18 Feb 2026 17:33:17 +0530 Subject: [PATCH] refactor(ui): reposition menu for improved layout Co-authored-by: diptanilsaha Co-authored-by: surajshetty3416 --- .../js/frappe/ui/sidebar/sidebar_header.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js index 0d85d3bb1a..c96f210105 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js @@ -7,6 +7,14 @@ frappe.ui.SidebarHeader = class SidebarHeader { const me = this; this.sibling_workspaces = this.fetch_related_icons(); this.dropdown_items = [ + { + name: "desktop", + label: __("Desktop"), + icon: "layout-grid", + onClick: function (el) { + frappe.set_route("/desk"); + }, + }, { name: "workspaces", label: "Workspaces", @@ -16,14 +24,6 @@ frappe.ui.SidebarHeader = class SidebarHeader { }, items: this.sibling_workspaces, }, - { - name: "desktop", - label: __("Desktop"), - icon: "layout-grid", - onClick: function (el) { - frappe.set_route("/desk"); - }, - }, { name: "edit-sidebar", label: __("Edit Sidebar"), @@ -47,12 +47,6 @@ frappe.ui.SidebarHeader = class SidebarHeader { if (frappe.boot.desk_settings.notifications) { let is_dark = frappe.ui.get_current_theme() === "dark"; this.dropdown_items.push( - { - name: "help", - label: "Help", - icon: "info", - items: this.get_help_siblings(), - }, { label: "Session Defaults", action: "frappe.ui.toolbar.setup_session_defaults()", @@ -76,6 +70,12 @@ frappe.ui.SidebarHeader = class SidebarHeader { action: "new frappe.ui.ThemeSwitcher().show()", is_standard: 1, icon: is_dark ? "sun" : "moon", + }, + { + name: "help", + label: "Help", + icon: "info", + items: this.get_help_siblings(), } ); }