Skip to content

Commit 792c208

Browse files
committed
fix TableOfContents
1 parent 57ebdb2 commit 792c208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quartz/quartz/components/TableOfContents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const TableOfContents: QuartzComponent = ({
2525
}
2626

2727
return (
28-
<div class={classNames(displayClass, "toc")}>
28+
<div style={{ overflowY: "auto", maxHeight: "40vh" }} class={classNames(displayClass, "toc")}>
2929
<button type="button" id="toc" class={fileData.collapseToc ? "collapsed" : ""}>
3030
<h3>{i18n(cfg.locale).components.tableOfContents.title}</h3>
3131
<svg

0 commit comments

Comments
 (0)