1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-07-23 06:41:30 +00:00

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

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}`}>