bug修复

This commit is contained in:
tangly1024
2021-10-14 15:18:50 +08:00
parent cf88cb2188
commit 6f5e1b3f39
3 changed files with 6 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ const DrawerRight = ({ post, cRef }) => {
<div
className={(showDrawer ? 'shadow-2xl ' : ' -mr-72 ') + ' w-72 duration-200 h-full fixed right-0 top-16 overflow-y-auto'}>
<div className='z-20'>
<TocBar toc={post.toc}/>
{post && <TocBar toc={post.toc}/>}
</div>
</div>
</div>

View File

@@ -9,6 +9,7 @@ import React, { useRef } from 'react'
import Container from '@/components/Container'
import JumpToTop from '@/components/JumpToTop'
import SideBar from '@/components/SideBar'
import TopNav from '@/components/TopNav'
const IndexLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
const meta = {
@@ -49,6 +50,7 @@ const IndexLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
return (
<Container id='wrapper' meta={meta} tags={tags}>
<TopNav tags={tags} />
<div ref={targetRef} className={`${BLOG.font} flex justify-between bg-gray-100 dark:bg-black min-h-screen`}>
{/* 侧边菜单 */}

View File

@@ -9,6 +9,7 @@ import React, { useRef } from 'react'
import Container from '@/components/Container'
import JumpToTop from '@/components/JumpToTop'
import SideBar from '@/components/SideBar'
import TopNav from '@/components/TopNav'
const IndexLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
const meta = {
@@ -48,10 +49,11 @@ const IndexLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
return (
<Container id='wrapper' meta={meta} tags={tags}>
<TopNav tags={tags} />
<div ref={targetRef} className={`${BLOG.font} flex justify-between bg-gray-100 dark:bg-black min-h-screen`}>
{/* 侧边菜单 */}
<SideBar />
<SideBar />
<div className='flex-grow'>
<TagsBar tags={tags} currentTag={currentTag} />