文章溢出
This commit is contained in:
tangly1024
2021-12-21 16:45:44 +08:00
parent 950b8fc358
commit 057ca44de6
7 changed files with 9 additions and 18 deletions

View File

@@ -71,14 +71,13 @@ const BaseLayout = ({
{/* 顶部导航栏 */}
<TopNav tags={tags} post={post} posts={totalPosts} currentSearch={currentSearch} categories={categories} currentCategory={currentCategory} />
<div className='flex justify-center px-5'>
<div className='mx-auto flex md:pt-8 pb-12'>
<div className='flex justify-center px-5 flex-1 mx-auto md:pt-8 pb-12'>
<div id='left' className='hidden lg:block flex-col w-72'>
<SideAreaLeft title={meta.title} post={post} posts={totalPosts} tags={tags} currentSearch={currentSearch} currentTag={currentTag} categories={categories} currentCategory={currentCategory} />
</div>
<div id='center' className='flex max-w-4xl min-h-screen md:mx-10' ref={targetRef}>
<div id='center' className='flex-grow max-w-4xl min-h-screen md:mx-10' ref={targetRef}>
{onLoading
? <LoadingCover/>
: <>
@@ -91,7 +90,6 @@ const BaseLayout = ({
<SideAreaRight post={post} posts={totalPosts} tags={tags} currentSearch={currentSearch} currentTag={currentTag} categories={categories} currentCategory={currentCategory}/>
</div>
</div>
</div>
<Footer title={meta.title}/>