From 38e47ca6b2f4f8aedeab05c4d8d05dcc51e39147 Mon Sep 17 00:00:00 2001 From: Serhii Bedrytskyi Date: Fri, 27 Jan 2023 20:50:45 +0200 Subject: [PATCH] fix: stick TOC position under AppHeader --- components/docs/DocsPageLayout.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/docs/DocsPageLayout.vue b/components/docs/DocsPageLayout.vue index 96c27bd0c..ff3b0da24 100644 --- a/components/docs/DocsPageLayout.vue +++ b/components/docs/DocsPageLayout.vue @@ -188,7 +188,7 @@ css({ }, '.toc': { position: 'sticky', - top: 0, + top: '{docus.header.height}', display: 'flex', mx: 'calc(0px - {space.4})', overflow: 'auto', @@ -197,7 +197,6 @@ css({ mx: 'calc(0px - {space.6})', }, '@lg': { - top: '{docus.header.height}', mx: 0, alignSelf: 'flex-start', py: '{space.8}',