From 6c2c84d941a243b1c82915f9e30ada8ab951f736 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Sat, 17 May 2025 17:33:29 +0800 Subject: [PATCH] style(toc): Adjust the CSS of the TOC --- .../src/stylesheets/theme-next/shell.css | 4 +- apps/client/src/widgets/toc.ts | 52 +++++++++++++------ 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css index fc751f8dd..2bcdf942f 100644 --- a/apps/client/src/stylesheets/theme-next/shell.css +++ b/apps/client/src/stylesheets/theme-next/shell.css @@ -1637,7 +1637,9 @@ div.find-replace-widget div.find-widget-found-wrapper > span { #right-pane .toc li, #right-pane .highlights-list li { - padding: 2px 8px; + padding-top: 2px; + padding-right: 8px; + padding-bottom: 2px; border-radius: 4px; text-align: unset; transition: diff --git a/apps/client/src/widgets/toc.ts b/apps/client/src/widgets/toc.ts index f88c3549f..d1e359065 100644 --- a/apps/client/src/widgets/toc.ts +++ b/apps/client/src/widgets/toc.ts @@ -35,12 +35,8 @@ const TPL = /*html*/`