Refine timeline visuals and apply to blog list

This commit is contained in:
2025-11-19 00:58:13 +08:00
parent fe191752da
commit 287c0d72a8
3 changed files with 10 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import {
} from '@fortawesome/free-solid-svg-icons';
import { siteConfig } from '@/lib/config';
import { PostListItem } from './post-list-item';
import { TimelineWrapper } from './timeline-wrapper';
interface Props {
posts: Post[];
@@ -151,11 +152,11 @@ export function PostListWithControls({ posts, pageSize }: Props) {
</div>
) : (
<div className="space-y-3">
<TimelineWrapper className="space-y-3">
{currentPosts.map((post) => (
<PostListItem key={post._id} post={post} />
))}
</div>
</TimelineWrapper>
)}
{totalPages > 1 && currentPosts.length > 0 && (