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,11 +32,12 @@
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
{{ partial('_partials/sidebar/site-overview.njk', {}, {cache: theme.cache.enable}) }}
<div class="site-overview">
{{ partial('_partials/sidebar/site-overview.njk', {}, {cache: theme.cache.enable}) }}
{{- next_inject('sidebar') }}
{{- next_inject('sidebar') }}
</div>
</div>
</div>
{%- if theme.back2top.enable and theme.back2top.sidebar %}
<div class="back-to-top animated" role="button" aria-label="{{ __('accessibility.back_to_top') }}">

View File

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