Skip to content

Commit

Permalink
fix: search and menu buttons overlapped (#4249)
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 authored Aug 27, 2024
1 parent 3b5c935 commit d47d051
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/effects/layouts/src/basic/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,17 @@ const isMenuRounded = computed(() => {
});
const logoCollapsed = computed(() => {
const shouldCollapse = isHeaderNav.value || isMixedNav.value;
if (shouldCollapse) {
return false;
if (isMobile.value) {
return true;
}
const shouldExpandOnMobile = !sidebarCollapsed.value && isMobile.value;
if (shouldExpandOnMobile) {
if (isHeaderNav.value || isMixedNav.value) {
return false;
}
return sidebarCollapsed.value || isSideMixedNav.value;
});
const showHeaderNav = computed(() => {
return isHeaderNav.value || isMixedNav.value;
return !isMobile.value && (isHeaderNav.value || isMixedNav.value);
});
// 侧边多列菜单
Expand Down

0 comments on commit d47d051

Please sign in to comment.