From 5265b039741555943f9a6f0451287aefb6810f28 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 28 Nov 2024 02:58:25 +0800 Subject: [PATCH] feat: support vertical scrolling for toc in desktop mode (#2064) --- _includes/toc.html | 5 +-- _layouts/default.html | 2 +- _sass/abstracts/_placeholders.scss | 4 +++ _sass/layout/_panel.scss | 14 ++++++--- _sass/pages/_post.scss | 49 +++++++++++++++++++++++++++--- 5 files changed, 61 insertions(+), 13 deletions(-) diff --git a/_includes/toc.html b/_includes/toc.html index 49c8f90..883bf13 100644 --- a/_includes/toc.html +++ b/_includes/toc.html @@ -1,8 +1,9 @@ {% include toc-status.html %} {% if enable_toc %} -
-

{{- site.data.locales[include.lang].panel.toc -}}

+
+
+

{{- site.data.locales[include.lang].panel.toc -}}

{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index c83c561..a55bfef 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -33,7 +33,7 @@ layout: compress -