From 3b9e248bfdfdea051680665666d140d7324b58d0 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 8 Aug 2021 17:03:48 +0200 Subject: [PATCH] feat(article): add scrollbar to TOC (#293) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/236 --- assets/scss/partials/layout/article.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 1d22fb9..ef64da9 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -191,8 +191,12 @@ display: flex; flex-direction: column; color: var(--card-text-color-main); + overflow: hidden; #TableOfContents { + overflow-x: auto; + max-height: 75vh; + ol, ul { margin: 0;