@media (min-width: 1300px) {
.gh-toc {
position: sticky; /* On larger screens, TOC will stay in the same spot on the page */
top: 4vmin;
grid-column: wide-start / main-start; /* Place the TOC to the left of the content */
height: 0; /* This should fix the spacing issue */
padding-right: 8rem; /* This will give your TOC a bit more room to breath */
}
I’ll look at updating the TOC tutorial to reflect these changes.