Skip to content

Commit

Permalink
Make TOC sticky on guides
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Nov 27, 2024
1 parent addf973 commit 266d357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Guide/GuideContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { frontmatter: guideFrontmatter, author } = guide;
<article class='lg:grid lg:max-w-full lg:grid-cols-[1fr_minmax(0,700px)_1fr]'>
{
(showTableOfContent || showRelatedGuides) && (
<div class='bg-gradient-to-r from-gray-50 py-0 lg:col-start-3 lg:col-end-4 lg:row-start-1'>
<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'>
<RelatedGuides
relatedTitle={guideFrontmatter?.relatedTitle}
relatedGuides={guide?.relatedGuides || {}}
Expand Down

0 comments on commit 266d357

Please sign in to comment.