Skip to content

fix(toc): remove horizontal overflow due Table of Contents (#23052) #23068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions layouts/partials/aside.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
class="sticky top-16 h-[calc(100vh-64px)] min-w-52 space-y-4 overflow-y-auto py-4 w-full"
>
{{ partial "github-links.html" . }}
<div id="TableOfContents">
<div id="TableOfContents" class="overflow-x-auto">
{{ partialCached "pagemeta.html" . . }}
</div>
{{- if ne .Type "guides" }}
{{ with .GetTerms "tags" }}
<div class="not-prose mt-8 px-4">
<div class="not-prose mt-8 px-4 overflow-x-auto">
{{- partial "tags.html" . }}
</div>
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/content-default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 data-pagefind-weight="10">{{ .Title }}</h1>
</div>
{{ .Content }}
</article>
<div class="-mt-8 -mr-20 hidden min-w-48 flex-1 lg:block">
<div class="-mt-8 hidden min-w-48 flex-1 lg:block">
{{ partial "aside.html" . }}
</div>
</div>