feat(ui): add (you) self-indicator badge to UserProfilePopover
All checks were successful
Deploy Waveform to VPS / deploy (push) Successful in 1m17s

This commit is contained in:
Chneemann 2026-10-17 04:07:02 +02:00
parent e64e2deb8d
commit eedcda43cd
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
/**
* @file components/ui/UserProfilePopover.tsx
* @description User profile popover component displaying user details, email, and interactive options to message or add them as a friend.
* @description User profile popover component displaying user details, status, self-indicator, and interactive options to message or add as a friend.
*/
"use client";
@ -100,6 +100,9 @@ export function UserProfilePopover({
<div className="flex-1 min-w-0">
<p className="text-sm font-semibold text-foreground truncate leading-tight">
{user.username}
{isSelf && (
<span className="ml-1 text-xs text-muted font-normal">(you)</span>
)}
</p>
<p className="text-xs text-muted truncate leading-tight font-medium capitalize">
{user.status.toLowerCase()}