From 289bac49491b671b38b4229fb6fc6d25ef2f0372 Mon Sep 17 00:00:00 2001 From: tusooa Date: Sun, 13 Jun 2021 21:59:15 -0400 Subject: [PATCH] Fix scrolling for site overview (#243) --- layout/_macro/sidebar.njk | 7 ++++--- source/css/_common/outline/sidebar/index.styl | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/layout/_macro/sidebar.njk b/layout/_macro/sidebar.njk index bae7322..f0a8c98 100644 --- a/layout/_macro/sidebar.njk +++ b/layout/_macro/sidebar.njk @@ -32,11 +32,12 @@ - {%- if theme.back2top.enable and theme.back2top.sidebar %}
diff --git a/source/css/_common/outline/sidebar/index.styl b/source/css/_common/outline/sidebar/index.styl index c7fd162..a6195f4 100644 --- a/source/css/_common/outline/sidebar/index.styl +++ b/source/css/_common/outline/sidebar/index.styl @@ -4,6 +4,10 @@ text-align: center; } +.site-overview { + max-height: var(--sidebar-wrapper-height); +} + .site-overview-item:not(:first-child) { margin-top: 10px; }