From 287c0d72a876f50dcb0344e920995ef7ace012e0 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Wed, 19 Nov 2025 00:58:13 +0800 Subject: [PATCH] Refine timeline visuals and apply to blog list --- components/post-list-item.tsx | 8 +++++--- components/post-list-with-controls.tsx | 5 +++-- components/timeline-wrapper.tsx | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/components/post-list-item.tsx b/components/post-list-item.tsx index 61675b7..fcb3835 100644 --- a/components/post-list-item.tsx +++ b/components/post-list-item.tsx @@ -18,8 +18,10 @@ export function PostListItem({ post }: Props) { post.description || post.custom_excerpt || post.body?.raw?.slice(0, 120); return ( -
  • -
  • + ); } diff --git a/components/post-list-with-controls.tsx b/components/post-list-with-controls.tsx index c154a70..2ae362f 100644 --- a/components/post-list-with-controls.tsx +++ b/components/post-list-with-controls.tsx @@ -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) { 找不到符合關鍵字的文章,換個詞再試試? ) : ( -
    + {currentPosts.map((post) => ( ))} -
    + )} {totalPages > 1 && currentPosts.length > 0 && ( diff --git a/components/timeline-wrapper.tsx b/components/timeline-wrapper.tsx index 8dbedd8..3300b3e 100644 --- a/components/timeline-wrapper.tsx +++ b/components/timeline-wrapper.tsx @@ -9,7 +9,8 @@ interface TimelineWrapperProps { export function TimelineWrapper({ children, className }: TimelineWrapperProps) { return (
    -