From d7e1f879b73774cdd3b9e75ae23f9eb27fddef95 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 28 Mar 2023 10:15:21 +0800 Subject: [PATCH] =?UTF-8?q?hexo=E9=A1=B6=E9=83=A8=E7=95=99=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/LayoutBase.js | 5 +---- themes/hexo/LayoutSlug.js | 2 +- themes/hexo/components/TopNav.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 414b5e0d..8f7267a9 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -74,10 +74,7 @@ const LayoutBase = props => { {headerSlot}
-
+
{onLoading ? : children}
diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index a84be094..b47478e8 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -46,7 +46,7 @@ export const LayoutSlug = props => { showTag={false} floatSlot={floatSlot} > -
+
{lock && } {!lock &&
diff --git a/themes/hexo/components/TopNav.js b/themes/hexo/components/TopNav.js index 1e790cdd..252ce8a0 100644 --- a/themes/hexo/components/TopNav.js +++ b/themes/hexo/components/TopNav.js @@ -67,7 +67,7 @@ const TopNav = props => { nav && nav.classList.replace('transparent', 'dark:bg-hexo-black-gray') } - const showNav = scrollS <= windowTop || scrollS < 5 || (header && scrollS <= header.clientHeight * 2)// 非首页无大图时影藏顶部 滚动条置顶时隐藏 + const showNav = scrollS <= windowTop || scrollS < 5 || (header && scrollS <= header.clientHeight)// 非首页无大图时影藏顶部 滚动条置顶时隐藏 if (!showNav) { nav && nav.classList.replace('top-0', '-top-20') windowTop = scrollS