From b1892b5f671788025517b50478fb5220197a9d9d Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Tue, 24 Sep 2024 15:53:10 +0200 Subject: [PATCH] fix(table of contents): multiple scrollbars (https://github.com/jackyzha0/quartz/issues/1388) --- quartz/components/styles/toc.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quartz/components/styles/toc.scss b/quartz/components/styles/toc.scss index 13d6d3fc6..fb01e8b7a 100644 --- a/quartz/components/styles/toc.scss +++ b/quartz/components/styles/toc.scss @@ -1,5 +1,12 @@ .toc { overflow-y: auto; + &.desktop-only { + max-height: 40%; + } + > #toc-content > .overflow { + max-height: unset; + overflow-y: unset; + } } button#toc {