diff --git a/frontend/src/features/online/PostCard.tsx b/frontend/src/features/online/PostCard.tsx index c6982f6..e55e6c7 100644 --- a/frontend/src/features/online/PostCard.tsx +++ b/frontend/src/features/online/PostCard.tsx @@ -31,7 +31,7 @@ export function PostCard({ to={`/detail/${post.id}`} state={from ? { from } : undefined} className={cn( - "group overflow-hidden rounded-lg border bg-ctp-base transition", + "group block overflow-hidden rounded-lg border bg-ctp-base transition", ratingBorder[post.rating] ?? "border-ctp-surface0", )} > diff --git a/frontend/src/features/pools/PoolDetailPage.tsx b/frontend/src/features/pools/PoolDetailPage.tsx index 1f84dba..d82d78a 100644 --- a/frontend/src/features/pools/PoolDetailPage.tsx +++ b/frontend/src/features/pools/PoolDetailPage.tsx @@ -268,23 +268,28 @@ export default function PoolDetailPage() { const blacklisted = blacklistSet.size > 0 && postIsBlacklisted(post, blacklistSet).length > 0; - const card = ( - - ); - return blacklisted ? ( + if (!blacklisted) { + return ( + + ); + } + return (
- {card} +
- ) : ( -
{card}
); })}