mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-26 12:35:35 +02:00
fix(chat): remove unread-count badge from chat FAB (MUL-4374) (#5213)
The floating chat bubble's unread-count badge duplicated the chat tab's unread indicator in the sidebar and visually overlapped it. Drop the badge; the hover tooltip still communicates unread/running state. Co-authored-by: J <j@multica.ai> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -41,7 +41,8 @@ export function ChatFab() {
|
||||
toggle();
|
||||
};
|
||||
|
||||
// Tooltip text communicates the state that isn't carried by the icon/badge.
|
||||
// Tooltip text carries the running/unread state on hover; the FAB itself no
|
||||
// longer shows an unread-count badge (it duplicated the chat tab's, MUL-4374).
|
||||
const tooltip = isRunning
|
||||
? t(($) => $.fab.running)
|
||||
: unreadSessionCount > 0
|
||||
@@ -60,11 +61,6 @@ export function ChatFab() {
|
||||
)}
|
||||
>
|
||||
<MessageCircle className="size-5" />
|
||||
{unreadSessionCount > 0 && (
|
||||
<span className="pointer-events-none absolute -top-0.5 -right-0.5 flex min-w-4 h-4 items-center justify-center rounded-full bg-brand px-1 text-xs font-semibold leading-none text-background">
|
||||
{unreadSessionCount > 9 ? "9+" : unreadSessionCount}
|
||||
</span>
|
||||
)}
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top" sideOffset={10}>{tooltip}</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user