fix post-width

This commit is contained in:
tangly1024.com
2023-07-18 14:58:03 +08:00
parent e2235aa723
commit d4b13f7b68
3 changed files with 4 additions and 3 deletions

View File

@@ -57,12 +57,13 @@ const BlogPostListScroll = ({ posts = [], currentSearch, showSummary = CONFIG.PO
return <div id='container' ref={targetRef} className='w-full'>
{/* 文章列表 */}
<div className='flex flex-wrap space-y-1 lg:space-y-4 px-2'>
<div className="2xl:grid 2xl:grid-cols-2 grid-cols-1 gap-5">
{postsToShow.map(post => (
<BlogPostCard key={post.id} post={post} showSummary={showSummary} siteInfo={siteInfo}/>
))}
</div>
{/* 更多按钮 */}
<div>
<div onClick={() => { handleGetMore() }}
className='w-full my-4 py-4 text-center cursor-pointer rounded-xl dark:text-gray-200'