Skip to content

Commit

Permalink
fix: hide aside if navigation is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 28, 2023
1 parent 4e54ed4 commit ed3dd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/docs/DocsPageLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const hasBody = computed(() => !page.value || page.value?.body?.children?.length
const hasToc = computed(() => page.value?.toc !== false && page.value?.body?.toc?.links?.length >= 2)
// TODO: get navigation links from aside level
const hasAside = computed(() => page.value?.aside !== false && navigation.value?.length > 0)
const hasAside = computed(() => page.value?.aside !== false && navigation.value?.length > 1)
const bottom = computed(() => fallbackValue('bottom', true))
const isOpen = ref(false)
Expand Down

0 comments on commit ed3dd92

Please sign in to comment.