From f7f6d266c85b73b782e6af6809fbbde053f4b006 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Mon, 4 May 2020 02:21:08 +0200 Subject: [PATCH] fix: make page TOC sticky (#1825) --- client/themes/default/components/page.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index ed137ca6..80a7266f 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -56,7 +56,7 @@ v-divider v-container.pl-5.pt-4(fluid, grid-list-xl) v-layout(row) - v-flex.page-col-sd(lg3, xl2, v-if='$vuetify.breakpoint.lgAndUp', style='margin-top: -90px;') + v-flex.page-col-sd(lg3, xl2, v-if='$vuetify.breakpoint.lgAndUp', align-self-start, style='margin-top: -90px; position: sticky; top: 70px;') v-card.mb-5(v-if='toc.length') .overline.pa-5.pb-0(:class='darkMode ? `blue--text text--lighten-2` : `primary--text`') {{$t('common:page.toc')}} v-list.pb-3(dense, nav, :class='darkMode ? `darken-3-d3` : ``')