mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-15 15:09:25 +00:00
bug修复
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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`}>
|
||||
{/* 侧边菜单 */}
|
||||
|
||||
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user