From 2412bc65f97e781d18e4b6b423a3904c2f30887e Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 29 Oct 2021 21:53:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83Jump=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=92=8CTidio=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/JumpToTop.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/JumpToTop.js b/components/JumpToTop.js index 9f369241..3d2bc93c 100644 --- a/components/JumpToTop.js +++ b/components/JumpToTop.js @@ -33,15 +33,15 @@ const JumpToTop = ({ targetRef, showPercent = true }) => { }, [show]) return ( -
-
+
+
window.scrollTo({ top: 0, behavior: 'smooth' })} - style={{ 'box-shadow': 'rgba(41, 50, 60, 0.5) 0px 2px 16px' }} - className={(show ? 'animate__fadeInUp' : 'animate__fadeOutUp') + ' bg-gray-800 p-2 cursor-pointer rounded-full animate__animated animate__faster shadow-2xl'}> + style={{ boxShadow: 'rgba(41, 50, 60, 0.5) 0px 2px 16px', borderRadius: '28px' }} + className={(show ? 'animate__fadeInUp' : 'animate__fadeOutUp') + ' bg-gray-700 px-2.5 py-2 cursor-pointer animate__animated animate__faster shadow-2xl'}>
- {showPercent && (
{percent}%
)} + {showPercent && (
 {percent}%
)}