Fix scrolling for site overview (#243)

This commit is contained in:
tusooa 2021-06-13 21:59:15 -04:00 committed by GitHub
parent d4f97cde0d
commit 289bac4949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -32,6 +32,7 @@
<!--/noindex--> <!--/noindex-->
<div class="site-overview-wrap sidebar-panel"> <div class="site-overview-wrap sidebar-panel">
<div class="site-overview">
{{ partial('_partials/sidebar/site-overview.njk', {}, {cache: theme.cache.enable}) }} {{ partial('_partials/sidebar/site-overview.njk', {}, {cache: theme.cache.enable}) }}
{{- next_inject('sidebar') }} {{- next_inject('sidebar') }}

View File

@ -4,6 +4,10 @@
text-align: center; text-align: center;
} }
.site-overview {
max-height: var(--sidebar-wrapper-height);
}
.site-overview-item:not(:first-child) { .site-overview-item:not(:first-child) {
margin-top: 10px; margin-top: 10px;
} }