From ed3dd92b1d95e51ddb3551db0e3058a341893d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 28 Feb 2023 16:35:01 +0100 Subject: [PATCH] fix: hide aside if navigation is empty --- components/docs/DocsPageLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/docs/DocsPageLayout.vue b/components/docs/DocsPageLayout.vue index 8e4153697..0fe933aff 100644 --- a/components/docs/DocsPageLayout.vue +++ b/components/docs/DocsPageLayout.vue @@ -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)