Skip to content
Merged
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
15 changes: 12 additions & 3 deletions apps/website/src/components/docs-page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const markdownPath = docsMarkdownPath(locale, currentId);
</article>

<aside class="hidden px-5 py-8 min-[1360px]:block">
<div class="sticky top-8 max-h-[calc(100dvh-4rem)] overflow-y-auto">
<div class="docs-table-of-contents-scroll sticky top-8 max-h-[calc(100dvh-4rem)] overflow-x-hidden overflow-y-auto">
<DocsTableOfContents
client:load
headings={tableOfContents}
Expand All @@ -116,15 +116,24 @@ const markdownPath = docsMarkdownPath(locale, currentId);
overflow-wrap: anywhere;
}

.docs-navigation-scroll {
.docs-navigation-scroll,
.docs-table-of-contents-scroll {
scrollbar-width: none;
-ms-overflow-style: none;
}

.docs-navigation-scroll::-webkit-scrollbar {
.docs-navigation-scroll::-webkit-scrollbar,
.docs-table-of-contents-scroll::-webkit-scrollbar {
display: none;
}

.docs-table-of-contents-scroll .gl-nav-item-label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.docs-content :is(h2, h3) {
scroll-margin-top: 2rem;
}
Expand Down