Skip to content

Commit

Permalink
fix(navigation): mobile display
Browse files Browse the repository at this point in the history
  • Loading branch information
larbish committed Dec 5, 2024
1 parent 80c20a8 commit 0525e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
10 changes: 1 addition & 9 deletions docs/app/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<script setup lang="ts">
import type { ContentNavigationItem } from '@nuxt/content'
// import type { NavigationMenuItem } from '@nuxt/ui'
// const props = defineProps<{
// links: NavigationMenuItem[]
// }>()
const config = useRuntimeConfig().public
const nav = inject<Ref<ContentNavigationItem[]>>('navigation')
// const items = computed(() => props.links.map(({ icon, ...link }) => link))
const navigation = computed(() => nav?.value.find(item => item.path === '/docs')?.children || [])
const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
defineShortcuts({
meta_g: () => {
Expand Down
3 changes: 1 addition & 2 deletions src/runtime/internal/navigation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { ContentNavigationItem, PageCollectionItemBase } from '@nuxt/content'
import type { ContentNavigationItem, PageCollectionItemBase, CollectionQueryBuilder } from '@nuxt/content'
import { pascalCase } from 'scule'
import type { CollectionQueryBuilder } from '~/src/types'

/**
* Create NavItem array to be consumed from runtime plugin.
Expand Down

0 comments on commit 0525e9d

Please sign in to comment.