fix: search and menu buttons overlapped (#4249)

pull/48/MERGE
Li Kui 2024-08-27 21:54:07 +08:00 committed by GitHub
parent 3b5c935bb8
commit d47d051b19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 11 deletions

View File

@ -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) { }
if (isHeaderNav.value || isMixedNav.value) {
return false; return false;
} }
const shouldExpandOnMobile = !sidebarCollapsed.value && isMobile.value;
if (shouldExpandOnMobile) {
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);
}); });
// //