Skip to content

Commit

Permalink
fix(projects): 修复顶部菜单的位置失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Soybean committed Jun 11, 2022
1 parent 5fa822f commit 4ee0d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/layouts/common/GlobalHeader/components/HeaderMenu.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="flex-1-hidden h-full px-10px">
<n-scrollbar :x-scrollable="true" class="flex-1-hidden h-full" content-class="h-full">
<div class="flex-y-center h-full">
<div class="flex-y-center h-full" :style="{ justifyContent: theme.menu.horizontalPosition }">
<n-menu
:value="activeKey"
mode="horizontal"
Expand Down
4 changes: 1 addition & 3 deletions src/layouts/common/GlobalHeader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
<menu-collapse v-if="showMenuCollapse" />
<global-breadcrumb v-if="theme.header.crumb.visible" />
</div>
<div v-else class="flex-1-hidden flex-y-center h-full" :style="{ justifyContent: theme.menu.horizontalPosition }">
<header-menu />
</div>
<header-menu v-else />
<div class="flex justify-end h-full">
<global-search />
<github-site />
Expand Down

1 comment on commit 4ee0d94

@vercel
Copy link

@vercel vercel bot commented on 4ee0d94 Jun 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.