This commit is contained in:
lex 2026-02-09 21:03:39 +08:00 committed by GitHub
commit 240f3f6d15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View File

@ -27,3 +27,6 @@ dist
# Git worktrees
.worktrees/
# Claude Code
CLAUDE.md

View File

@ -52,15 +52,18 @@ const MemoHeader: React.FC<MemoHeaderProps> = ({ showCreator, showVisibility, sh
/>
)}
{!isInMemoDetailPage && commentAmount > 0 && (
{!isInMemoDetailPage && (
<Link
className={cn("flex flex-row justify-start items-center rounded-md px-1 hover:opacity-80 gap-0.5")}
className={cn(
"flex flex-row justify-start items-center rounded-md px-1 hover:opacity-80 gap-0.5",
commentAmount === 0 && "hidden sm:group-hover:flex",
)}
to={`/${memo.name}#comments`}
viewTransition
state={{ from: parentPage }}
>
<MessageCircleMoreIcon className="w-4 h-4 mx-auto text-muted-foreground" />
<span className="text-xs text-muted-foreground">{commentAmount}</span>
{commentAmount > 0 && <span className="text-xs text-muted-foreground">{commentAmount}</span>}
</Link>
)}