mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
Merge pull request #1579 from Femoon/fix/homepage_animation
Fix: 修复 Medium 主题首页文章列表无封面图片时动画异常
This commit is contained in:
@@ -31,7 +31,7 @@ const BlogPostCard = ({ post, showSummary }) => {
|
|||||||
}>
|
}>
|
||||||
<div>
|
<div>
|
||||||
{CONFIG.POST_LIST_COVER && <div className='w-full max-h-96 object-cover overflow-hidden mb-2'>
|
{CONFIG.POST_LIST_COVER && <div className='w-full max-h-96 object-cover overflow-hidden mb-2'>
|
||||||
<LazyImage src={post.pageCoverThumbnail} className='w-full max-h-96 object-cover hover:scale-125 duration-150' />
|
<LazyImage src={post.pageCoverThumbnail} style={post.pageCoverThumbnail ? {} : { height: '0px' }} className='w-full max-h-96 object-cover hover:scale-125 duration-150' />
|
||||||
</div>}
|
</div>}
|
||||||
{post.title}
|
{post.title}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user