fix: Link visibility in exampanded TOC while collapseByDefault is true (#1371)

This commit is contained in:
Danny van Tol 2024-08-24 21:56:17 +02:00 committed by GitHub
parent c4cd84dcc8
commit 46b63b68bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ const TableOfContents: QuartzComponent = ({
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
</button>
<div id="toc-content">
<div id="toc-content" class={fileData.collapseToc ? "collapsed" : ""}>
<ul class="overflow">
{fileData.toc.map((tocEntry) => (
<li key={tocEntry.slug} class={`depth-${tocEntry.depth}`}>