Skip to content

Commit

Permalink
fix: toc height for auto api
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed Nov 20, 2024
1 parent 11251d0 commit 21234c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sphinxawesome_theme/toc.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#- Template for the on-page TOC -#}

<aside id="right-sidebar" class="hidden text-sm xl:block">
<div class="sticky top-16 -mt-10 max-h-[calc(100vh-5rem)] overflow-y-auto pt-6 space-y-2">
<div class="sticky top-16 -mt-10 max-h-[calc(100vh-5rem)] h-full overflow-y-auto pt-6 space-y-2">
{%- block toc_before %}{%- endblock -%}
<p class="font-medium">On this page</p>
{{ toc }}
Expand Down

0 comments on commit 21234c0

Please sign in to comment.