Skip to content

fix: restore comment icon visibility for memos with no comments#5613

Closed
zj1123581321 wants to merge 1 commit intousememos:mainfrom
zj1123581321:fix/restore-comment-icon-visibility
Closed

fix: restore comment icon visibility for memos with no comments#5613
zj1123581321 wants to merge 1 commit intousememos:mainfrom
zj1123581321:fix/restore-comment-icon-visibility

Conversation

@zj1123581321
Copy link

Summary

  • Restore comment icon on memo cards when there are no comments yet. The icon was completely removed from the DOM due to conditional rendering (commentAmount > 0 &&), introduced in commit 62646853. This restores the previous CSS-based visibility approach where the icon is hidden by default and shown on hover (desktop), allowing users to navigate to the detail page to write the first comment.

Changes

  • MemoHeader.tsx: Replace commentAmount > 0 && conditional rendering with CSS hidden sm:group-hover:flex when commentAmount === 0, matching the interaction pattern of ReactionSelector

Test plan

  • Memo with 0 comments: hover card → comment icon appears (no count number)
  • Click comment icon → navigates to detail page with "Write a comment" button
  • Create a comment → comment appears in detail page with count (1)
  • Return to list → comment icon always visible with count "1"

Fixes #5592

🤖 Generated with Claude Code

The comment icon in MemoHeader was completely hidden when commentAmount
was 0 due to conditional rendering (introduced in 6264685). This
restores the previous behavior where the icon is rendered but hidden
via CSS, appearing on hover (desktop) so users can navigate to the
detail page to write the first comment.

Fixes usememos#5592

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@boojack boojack force-pushed the main branch 2 times, most recently from a196c72 to 71e8a06 Compare February 10, 2026 01:15
@boojack boojack self-requested a review as a code owner February 24, 2026 14:23
@boojack boojack force-pushed the main branch 2 times, most recently from 2b6b987 to 47d9414 Compare February 24, 2026 14:54
@boojack boojack added the Stale label Mar 4, 2026
@boojack boojack closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment icon is gone again and inbox functionality does not work

2 participants