Skip to content

Commit

Permalink
fix: show aside when level 0 and one parent only
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Mar 8, 2023
1 parent acca10f commit 8b920c2
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 @@ -11,7 +11,7 @@ const fallbackValue = (value: string, fallback = true) => {
const hasBody = computed(() => !page.value || page.value?.body?.children?.length > 0)
const hasToc = computed(() => page.value?.toc !== false && page.value?.body?.toc?.links?.length >= 2)
const hasAside = computed(() => page.value?.aside !== false && tree.value?.length > 1)
const hasAside = computed(() => page.value?.aside !== false && (tree.value?.length > 1 || tree.value?.[0]?.children?.length))
const bottom = computed(() => fallbackValue('bottom', true))
const isOpen = ref(false)
Expand Down

0 comments on commit 8b920c2

Please sign in to comment.