搜索页面分页处理

This commit is contained in:
tangly
2022-11-18 13:12:59 +08:00
parent 12babbdbca
commit 8a1bf132f2
18 changed files with 354 additions and 215 deletions

View File

@@ -52,10 +52,10 @@ const BlogPostListScroll = ({ posts = [], currentSearch, showSummary = CONFIG_NE
if (!postsToShow || postsToShow.length === 0) {
return <BlogPostListEmpty currentSearch={currentSearch} />
} else {
return <div id='container' ref={targetRef}>
return <div ref={targetRef}>
{/* 文章列表 */}
<div className='flex flex-wrap space-y-1 lg:space-y-4'>
<div id='container' className='flex flex-wrap space-y-1 lg:space-y-4'>
{postsToShow.map(post => (
<BlogPostCard key={post.id} post={post} showSummary={showSummary} />
))}