NEXT: 右下角悬浮,底部边距

This commit is contained in:
tangly1024
2022-01-18 16:28:23 +08:00
parent 59c2224f71
commit f65ef5551b
2 changed files with 1 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ const LayoutBase = ({
</main>
{/* 右下角悬浮 */}
<div className='right-8 bottom-10 lg:right-2 lg:bottom-2 fixed justify-end z-20 font-sans'>
<div className='right-8 bottom-12 lg:right-2 fixed justify-end z-20 font-sans'>
<div className={(show ? 'animate__animated ' : 'hidden') + ' animate__fadeInUp rounded-md glassmorphism justify-center duration-500 animate__faster flex space-x-2 items-center cursor-pointer '}>
<JumpToTopButton percent={percent}/>
<JumpToBottomButton />

View File

@@ -29,7 +29,6 @@ export const LayoutSlug = ({
const drawerRight = useRef(null)
const targetRef = typeof window !== 'undefined' ? document.getElementById('container') : null
console.log(post)
if (post?.blockMap?.block) {
post.content = Object.keys(post.blockMap.block)
post.toc = getPageTableOfContents(post, post.blockMap)