mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-11 11:43:58 +02:00
Make TOC sticky on guides
This commit is contained in:
@@ -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]'>
|
<article class='lg:grid lg:max-w-full lg:grid-cols-[1fr_minmax(0,700px)_1fr]'>
|
||||||
{
|
{
|
||||||
(showTableOfContent || showRelatedGuides) && (
|
(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
|
<RelatedGuides
|
||||||
relatedTitle={guideFrontmatter?.relatedTitle}
|
relatedTitle={guideFrontmatter?.relatedTitle}
|
||||||
relatedGuides={guide?.relatedGuides || {}}
|
relatedGuides={guide?.relatedGuides || {}}
|
||||||
|
Reference in New Issue
Block a user