Skip to content

Commit 266d357

Browse files
committed
Make TOC sticky on guides
1 parent addf973 commit 266d357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Guide/GuideContent.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { frontmatter: guideFrontmatter, author } = guide;
2222
<article class='lg:grid lg:max-w-full lg:grid-cols-[1fr_minmax(0,700px)_1fr]'>
2323
{
2424
(showTableOfContent || showRelatedGuides) && (
25-
<div class='bg-gradient-to-r from-gray-50 py-0 lg:col-start-3 lg:col-end-4 lg:row-start-1'>
25+
<div class='sticky top-0 lg:relative bg-gradient-to-r from-gray-50 py-0 lg:col-start-3 lg:col-end-4 lg:row-start-1'>
2626
<RelatedGuides
2727
relatedTitle={guideFrontmatter?.relatedTitle}
2828
relatedGuides={guide?.relatedGuides || {}}

0 commit comments

Comments
 (0)