Commit d47d051b by Li Kui Committed by GitHub

fix: search and menu buttons overlapped (#4249)

1 parent 3b5c935b
...@@ -78,23 +78,17 @@ const isMenuRounded = computed(() => { ...@@ -78,23 +78,17 @@ const isMenuRounded = computed(() => {
}); });
const logoCollapsed = computed(() => { const logoCollapsed = computed(() => {
const shouldCollapse = isHeaderNav.value || isMixedNav.value; if (isMobile.value) {
return true;
if (shouldCollapse) {
return false;
} }
if (isHeaderNav.value || isMixedNav.value) {
const shouldExpandOnMobile = !sidebarCollapsed.value && isMobile.value;
if (shouldExpandOnMobile) {
return false; return false;
} }
return sidebarCollapsed.value || isSideMixedNav.value; return sidebarCollapsed.value || isSideMixedNav.value;
}); });
const showHeaderNav = computed(() => { const showHeaderNav = computed(() => {
return isHeaderNav.value || isMixedNav.value; return !isMobile.value && (isHeaderNav.value || isMixedNav.value);
}); });
// 侧边多列菜单 // 侧边多列菜单
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!