From a33eb88da43ba11b677df7cb2fb35a1b789fd537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Tue, 14 Nov 2023 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=BD=AE=E9=A1=B6=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=80=80=E5=87=BA=20#106?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hexo-theme-async-ts/src/init.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/hexo-theme-async-ts/src/init.ts b/packages/hexo-theme-async-ts/src/init.ts index a9359dba..52e8d24c 100644 --- a/packages/hexo-theme-async-ts/src/init.ts +++ b/packages/hexo-theme-async-ts/src/init.ts @@ -156,7 +156,7 @@ export function InitScroll() { if (sidebar) { sidebar.classList[sidebarFun]('fixed'); setSidebarWidth(); - } + } banner && (banner.style.transform = `matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, ${Math.min(scrollTop / 3, 100)}, 0, 1)`); @@ -175,9 +175,9 @@ export function InitScroll() { }; const observer = new MutationObserver(() => { - setSidebarWidth() + setSidebarWidth(); }); - + const init = () => { const sections = utils.qa('.trm-scroll-animation'); sections.forEach(element => { @@ -289,7 +289,8 @@ export function InitToc() { isDown = false; document.onmousemove = null; document.onmouseup = null; - postToc.style.opacity = 'unset'; + postToc.style.removeProperty('opacity'); + // postToc.style.opacity = 'unset'; }; });