fix(projects): 修复顶部菜单的位置失效问题

This commit is contained in:
Soybean 2022-06-11 15:27:19 +08:00
parent 5fa822f4d4
commit 4ee0d94f1b
2 changed files with 2 additions and 4 deletions

View File

@ -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"

View File

@ -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 />