diff --git a/src/components/common/PostCard.tsx b/src/components/common/PostCard.tsx index ea0d03e212..14e70e4a18 100644 --- a/src/components/common/PostCard.tsx +++ b/src/components/common/PostCard.tsx @@ -66,26 +66,29 @@ const Card = ({ : `${linkPrefix || ""}/${post.metadata?.content?.slug}${queryString}` } className={cn( - "xlog-post sm:hover:bg-hover transition-all rounded-2xl flex flex-col items-center hover:opacity-100 group border relative", + "xlog-post rounded-2xl flex flex-col items-center group relative", + isShort + ? "xlog-short" + : "border sm:hover:bg-hover transition-all hover:opacity-100", )} >
{comment && ( @@ -127,7 +130,6 @@ const Card = ({ ), ) : post.metadata?.content?.summary} - {post.metadata?.content?.summary && "..."}
)}
@@ -219,16 +221,18 @@ const Card = ({ ) : ( - - - - {post.metadata?.content?.readingTime} {t("min")} + !isShort && ( + + + + {post.metadata?.content?.readingTime} {t("min")} + - + ) )} )} @@ -265,30 +269,32 @@ const Card = ({ ยท )} - + {!isShort && ( + + )} {isPinned && ( diff --git a/src/components/site/PostList.tsx b/src/components/site/PostList.tsx index caec8c21b1..7a7be8f6b1 100644 --- a/src/components/site/PostList.tsx +++ b/src/components/site/PostList.tsx @@ -39,8 +39,8 @@ export default function PostList({ {!!posts.data.pages[0].count && (
{posts.data.pages.map((posts, listIndex) => diff --git a/src/components/site/SiteHome.tsx b/src/components/site/SiteHome.tsx index 14b5b95cbe..4b16ee8969 100644 --- a/src/components/site/SiteHome.tsx +++ b/src/components/site/SiteHome.tsx @@ -18,7 +18,7 @@ export default function SiteHome({ type: type || ["post", "portfolio"], visibility: PageVisibilityEnum.Published, useStat: true, - limit: 18, + limit: type === "short" ? 20 : 18, }) const pinnedPage = usePinnedPage({ characterId: site.data?.characterId })