Browse Source

chore(gui-v2): update menu styles

pull/3023/head
braks 2 years ago
parent
commit
3033fff9d1
  1. 24
      packages/nc-gui-v2/pages/nc/[projectId]/index.vue

24
packages/nc-gui-v2/pages/nc/[projectId]/index.vue

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { provideSidebar, ref, useProject, useRoute, useSidebar, useTabs, useToggle, useUIPermission } from '#imports' import { provideSidebar, ref, useProject, useRoute, useSidebar, useTabs, useUIPermission } from '#imports'
import { TabType } from '~/composables' import { TabType } from '~/composables'
const route = useRoute() const route = useRoute()
@ -72,8 +72,8 @@ await loadTables()
<teleport v-if="project" to="#header-start"> <teleport v-if="project" to="#header-start">
<a-dropdown :trigger="['click']"> <a-dropdown :trigger="['click']">
<div class="group cursor-pointer w-full flex justify-between items-center"> <div class="group cursor-pointer w-full flex gap-4 items-center">
<div class="flex-auto text-xl truncate">{{ project.title }}</div> <div class="text-xl truncate">{{ project.title }}</div>
<MdiChevronDown class="min-w-[28.5px] group-hover:text-pink-500 text-2xl" /> <MdiChevronDown class="min-w-[28.5px] group-hover:text-pink-500 text-2xl" />
</div> </div>
@ -81,14 +81,14 @@ await loadTables()
<template #overlay> <template #overlay>
<a-menu class="ml-2 min-w-32 leading-8 !rounded"> <a-menu class="ml-2 min-w-32 leading-8 !rounded">
<a-menu-item-group title="Project Settings"> <a-menu-item-group title="Project Settings">
<a-menu-item> <a-menu-item key="copy">
<div class="nc-project-menu-item group"> <div class="nc-project-menu-item group">
<MdiContentCopy class="group-hover:text-pink-500" /> <MdiContentCopy class="group-hover:text-pink-500" />
Copy Project Info Copy Project Info
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item key="api">
<a <a
v-if="isUIAllowed('apiDocs')" v-if="isUIAllowed('apiDocs')"
v-t="['e:api-docs']" v-t="['e:api-docs']"
@ -101,7 +101,7 @@ await loadTables()
</a> </a>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item key="teamAndAuth">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('settings')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:project-settings']"
@ -113,7 +113,7 @@ await loadTables()
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item key="appStore">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('settings')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:project-settings']"
@ -125,7 +125,7 @@ await loadTables()
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item key="metaData">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('settings')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:project-settings']"
@ -137,7 +137,7 @@ await loadTables()
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-menu-item key="audit">
<div <div
v-if="isUIAllowed('settings')" v-if="isUIAllowed('settings')"
v-t="['c:navdraw:project-settings']" v-t="['c:navdraw:project-settings']"
@ -149,16 +149,16 @@ await loadTables()
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item> <a-sub-menu key="preview-as">
<a-sub-menu> <template #title>
<div class="nc-project-menu-item group"> <div class="nc-project-menu-item group">
<MdiContentCopy class="group-hover:text-pink-500" /> <MdiContentCopy class="group-hover:text-pink-500" />
Preview Project As Preview Project As
</div> </div>
</template>
<a-menu-item> Foo </a-menu-item> <a-menu-item> Foo </a-menu-item>
</a-sub-menu> </a-sub-menu>
</a-menu-item>
</a-menu-item-group> </a-menu-item-group>
</a-menu> </a-menu>
</template> </template>

Loading…
Cancel
Save