diff --git a/wwwroot/shell_theme.js b/wwwroot/shell_theme.js index 31ca1a7..367a722 100644 --- a/wwwroot/shell_theme.js +++ b/wwwroot/shell_theme.js @@ -185,9 +185,10 @@ var w = await bricks.widgetBuild(desc, sidebar); if (w) { sidebar.addSubWidget(w); - // Re-apply collapsed state and inline width to newly built menu + // Re-apply sidebar width and collapsed state to newly built menu + sidebar.el.style.width = isCollapsed ? '64px' : '240px'; + updateSidebarIcon(isCollapsed); if (isCollapsed) { - sidebar.el.style.width = '64px'; var menu = bricks.getWidgetById('global_nav_menu', bricks.app); if (menu && menu.collapse) { menu.collapse();