diff --git a/components/docs/DocsPageLayout.vue b/components/docs/DocsPageLayout.vue index 0b2edee83..ad5eb9331 100644 --- a/components/docs/DocsPageLayout.vue +++ b/components/docs/DocsPageLayout.vue @@ -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)