mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
微调
This commit is contained in:
@@ -27,7 +27,7 @@ export default function ArticleDetail(props) {
|
|||||||
<div id="container" className={`${fullWidth ? 'px-10' : 'max-w-5xl '} overflow-x-auto flex-grow mx-auto w-screen md:w-full`}>
|
<div id="container" className={`${fullWidth ? 'px-10' : 'max-w-5xl '} overflow-x-auto flex-grow mx-auto w-screen md:w-full`}>
|
||||||
{post?.type && !post?.type !== 'Page' && post?.pageCover && (
|
{post?.type && !post?.type !== 'Page' && post?.pageCover && (
|
||||||
<div className="w-full relative md:flex-shrink-0 overflow-hidden">
|
<div className="w-full relative md:flex-shrink-0 overflow-hidden">
|
||||||
<LazyImage alt={post.title} src={post?.pageCover} className='object-center w-full' />
|
<LazyImage alt={post.title} src={post?.pageCover} className='object-cover max-h-[60vh] w-full' />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -52,8 +52,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
|
|||||||
<div className="px-4 flex flex-col w-full text-gray-700 dark:text-gray-300">
|
<div className="px-4 flex flex-col w-full text-gray-700 dark:text-gray-300">
|
||||||
|
|
||||||
{(!showPreview || showSummary) && post.summary && (
|
{(!showPreview || showSummary) && post.summary && (
|
||||||
<p style={{ overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box', WebkitLineClamp: '4', WebkitBoxOrient: 'vertical' }}
|
<p className="replace my-2 text-sm font-light leading-7 line-clamp-3">
|
||||||
className="replace my-2 text-sm font-light leading-7">
|
|
||||||
{post.summary}
|
{post.summary}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user