Skip to content

Commit

Permalink
refactor: change nickname render logic, make sure its has a placehold…
Browse files Browse the repository at this point in the history
…er to avoid hover blink
  • Loading branch information
moonrailgun committed Dec 1, 2024
1 parent 74d843d commit abe7ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/web/src/components/ChatBox/ChatMessageList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const NormalMessage: React.FC<ChatMessageItemProps> = React.memo(
{showAvatar && (
<div className="flex items-center">
<div className="font-bold">
{userInfo.nickname ?? <span>&nbsp;</span>}
{userInfo.nickname || <span>&nbsp;</span>}
</div>
<div className="hidden group-hover:block opacity-40 ml-1 text-sm">
{formatShortTime(payload.createdAt)}
Expand Down

0 comments on commit abe7ce6

Please sign in to comment.