移动段适配,加入深夜模式按钮

This commit is contained in:
tangly1024
2021-11-05 17:21:59 +08:00
parent 5bcb50891c
commit 6cbe623e97
9 changed files with 47 additions and 34 deletions

View File

@@ -49,9 +49,9 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory,
const targetRef = useRef(null)
if (!postsToShow || postsToShow.length === 0) {
return <BlogPostListEmpty />
return <BlogPostListEmpty currentSearch={currentSearch}/>
} else {
return <div id='post-list-wrapper' className='mt-28 md:mt-32 mx-2 md:mx-20' ref={targetRef}>
return <div id='post-list-wrapper' className='mt-20 mx-2 md:mx-20' ref={targetRef}>
{currentCategory && (
<div className='w-full p-1 bg-gray-100 dark:bg-gray-700'>