This commit is contained in:
tangly1024
2021-10-13 13:32:35 +08:00
parent 8aefd5546a
commit 04a7b34917
3 changed files with 0 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ const Container = ({ children, layout, fullWidth, tags, meta, ...customMeta }) =
const scrollS = window.scrollY
const nav = document.querySelector('#sticky-nav')
const tagsBar = document.querySelector('#tags-bar')
console.log(windowTop, scrollS)
if (scrollS >= windowTop) {
nav && nav.classList.add('-mt-16')
tagsBar && tagsBar.classList.add('-mt-32')

View File

@@ -1,4 +1,3 @@
import BLOG from '@/blog.config'
import React from 'react'
const Footer = ({ fullWidth = true }) => {

View File

@@ -25,7 +25,6 @@ const LeftFloatButton = () => {
}
}, 500)
const [collapse, changeCollapse] = useState(true)
console.log(collapse)
return <div
className={(collapse ? 'left-0' : 'left-72') + ' z-30 fixed flex flex-nowrap md:flex-col top-0 pl-4 py-1 duration-500 ease-in-out'}>
{/* 菜单折叠 */}