1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-01-29 12:18:23 +01:00

Make TOC sticky on guides

This commit is contained in:
Kamran Ahmed 2024-11-27 21:44:27 +05:00
parent addf973c81
commit 266d357e2a

View File

@ -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 || {}}