feature: 封装组件

This commit is contained in:
tangly1024
2021-12-30 17:15:14 +08:00
parent 7a5aac0a20
commit 540f3ac8ed
10 changed files with 78 additions and 71 deletions

View File

@@ -56,7 +56,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory,
return <div id='post-list-wrapper' className='mt-10 md:mt-0' ref={targetRef}>
{/* 文章列表 */}
<div className='flex flex-wrap space-y-8'>
<div className='flex flex-wrap space-y-8 mx-5 md:mx-0'>
{postsToShow.map(post => (
<BlogPostCard key={post.id} post={post} tags={tags}/>
))}