fix: remove viewCount for non shorts

This commit is contained in:
DIYgod 2023-09-15 00:42:20 +08:00
parent b5416560d6
commit 4524bdc768
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ const Card = ({
<span className="text-zinc-400 hidden sm:inline-block">·</span>
</>
)}
{!!post.stat?.viewCount && (
{isShort && !!post.stat?.viewCount && (
<span className="xlog-post-meta text-zinc-400 flex items-center text-[13px] truncate space-x-2">
<span className="xlog-post-views inline-flex items-center">
<i className="icon-[mingcute--eye-line] mr-[2px] text-base" />