UX: Hide hamburger dropdown when enable_sidebar query param is used (#20367)

This commit is contained in:
Alan Guo Xiang Tan
2023-02-20 11:34:37 +08:00
committed by GitHub
parent f91631b625
commit d71a82786a
3 changed files with 21 additions and 5 deletions

View File

@ -339,11 +339,7 @@ createWidget("header-icons", {
},
});
if (
this.siteSettings.navigation_menu === "legacy" ||
!attrs.sidebarEnabled ||
this.site.mobileView
) {
if (!attrs.sidebarEnabled || this.site.mobileView) {
icons.push(hamburger);
}