From 5b271365216bbd443a2dada090a6af25ec72e053 Mon Sep 17 00:00:00 2001 From: Femoon <839242981@qq.com> Date: Sun, 28 Apr 2024 16:44:37 +0800 Subject: [PATCH] fix: medium theme page refresh causing the catalog loss, phone style optimization --- themes/medium/components/BottomMenuBar.js | 8 ++++---- themes/medium/index.js | 20 ++++++++++++++------ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/themes/medium/components/BottomMenuBar.js b/themes/medium/components/BottomMenuBar.js index fee36eb2..23979d9e 100644 --- a/themes/medium/components/BottomMenuBar.js +++ b/themes/medium/components/BottomMenuBar.js @@ -4,7 +4,7 @@ import JumpToTopButton from './JumpToTopButton' export default function BottomMenuBar ({ post, className }) { const { tocVisible, changeTocVisible } = useMediumGlobal() - const showTocBotton = post?.toc?.length > 0 + const showTocButton = post?.toc?.length > 0 const toggleToc = () => { changeTocVisible(!tocVisible) @@ -18,13 +18,13 @@ export default function BottomMenuBar ({ post, className }) { -