From ea76e9446352fda0953da48a5a034d3b8b6cb029 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 24 Jun 2023 19:39:56 +0800 Subject: [PATCH] =?UTF-8?q?gittbook=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/LayoutBase.js | 6 +++--- themes/gitbook/components/FloatTocButton.js | 2 +- themes/gitbook/components/TocDrawer.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/gitbook/LayoutBase.js b/themes/gitbook/LayoutBase.js index f2f28bf8..9469bbe7 100644 --- a/themes/gitbook/LayoutBase.js +++ b/themes/gitbook/LayoutBase.js @@ -81,8 +81,8 @@ const LayoutBase = (props) => { data-aos-duration="300" data-aos-once="false" data-aos-anchor-placement="top-center" - className='fixed xl:right-80 right-2 mr-10 bottom-24 hidden lg:block z-20'> - { window.scrollTo({ top: 0, behavior: 'smooth' }) }} /> + className='fixed xl:right-80 right-2 mr-10 bottom-24 hidden lg:block z-20 '> + { window.scrollTo({ top: 0, behavior: 'smooth' }) }} /> @@ -112,7 +112,7 @@ const LayoutBase = (props) => { - {showTocButton && !tocVisible &&
+ {showTocButton && !tocVisible &&
} diff --git a/themes/gitbook/components/FloatTocButton.js b/themes/gitbook/components/FloatTocButton.js index 05c817d9..19d0c294 100644 --- a/themes/gitbook/components/FloatTocButton.js +++ b/themes/gitbook/components/FloatTocButton.js @@ -10,7 +10,7 @@ export default function FloatTocButton () { return (
{ changeTocVisible(!tocVisible) } return <> -
+
{/* 侧边菜单 */}
+ ' overflow-y-hidden shadow-card w-60 duration-200 fixed right-1 bottom-16 rounded py-2 bg-white dark:bg-gray-900'}> {post && <>