Skip to content

Commit

Permalink
fix: search and menu buttons overlapped
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Aug 27, 2024
1 parent 3b5c935 commit b8f3ef4
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 b8f3ef4

Please sign in to comment.