From 6c8c0133fdf37098aa57c045d468e996180aae81 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 15 Feb 2022 11:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=A1=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/LayoutBase.js | 7 +++---- themes/Medium/components/BottomMenuBar.js | 2 +- themes/Medium/components/Catalog.js | 4 ++-- themes/Medium/components/Footer.js | 2 +- themes/Medium/components/JumpToTopButton.js | 4 ++-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/themes/Medium/LayoutBase.js b/themes/Medium/LayoutBase.js index 3cd0f7bb..087d2589 100644 --- a/themes/Medium/LayoutBase.js +++ b/themes/Medium/LayoutBase.js @@ -25,14 +25,13 @@ const LayoutBase = props => {
- {/* 桌面端左侧菜单 */} {/* */} -
+
{/* 移动端顶部菜单 */} -
+
{children}
@@ -51,8 +50,8 @@ const LayoutBase = props => {
{/* 移动端底部 */} -
+
) } diff --git a/themes/Medium/components/BottomMenuBar.js b/themes/Medium/components/BottomMenuBar.js index 6e8e0c71..f81af654 100644 --- a/themes/Medium/components/BottomMenuBar.js +++ b/themes/Medium/components/BottomMenuBar.js @@ -6,7 +6,7 @@ import JumpToTopButton from '@/themes/Medium/components/JumpToTopButton' export default function BottomMenuBar ({ className }) { return ( -
+
diff --git a/themes/Medium/components/Catalog.js b/themes/Medium/components/Catalog.js index 9ae655a1..b1dc71ba 100644 --- a/themes/Medium/components/Catalog.js +++ b/themes/Medium/components/Catalog.js @@ -2,8 +2,7 @@ import React from 'react' import throttle from 'lodash.throttle' import { uuidToId } from 'notion-utils' import Progress from './Progress' -// import { cs } from 'react-notion-x' - +import JumpToTopButton from './JumpToTopButton' /** * 目录导航组件 * @param toc @@ -79,6 +78,7 @@ const Catalog = ({ toc }) => { ) })} +
} diff --git a/themes/Medium/components/Footer.js b/themes/Medium/components/Footer.js index d9aac814..57ad7797 100644 --- a/themes/Medium/components/Footer.js +++ b/themes/Medium/components/Footer.js @@ -9,7 +9,7 @@ const Footer = ({ title }) => { const startYear = BLOG.SINCE && BLOG.SINCE !== currentYear && BLOG.SINCE + '-' return (