Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
refactor(chat): replace pill FAB with circular icon button + tooltip
Naiyuan Qing547da4c3e518
diff --git a/packages/views/chat/components/chat-fab.tsx b/packages/views/chat/components/chat-fab.tsxindex 1aca107534..dbc4e965be 100644--- a/packages/views/chat/components/chat-fab.tsx+++ b/packages/views/chat/components/chat-fab.tsx@@ -1,7 +1,12 @@"use client";-import { Send } from "lucide-react";+import { MessageCircle } from "lucide-react";import { useChatStore } from "@multica/core/chat";+import {+ Tooltip,+ TooltipTrigger,+ TooltipContent,+} from "@multica/ui/components/ui/tooltip";export function ChatFab() {const isOpen = useChatStore((s) => s.isOpen);@@ -10,12 +15,14 @@ export function ChatFab() {if (isOpen) return null;return (- <button- onClick={toggle}- className="fixed bottom-4 right-4 z-50 flex items-center gap-2 rounded-full border bg-background px-4 py-2 text-sm font-medium text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground"- >- <Send className="size-3.5" />- Ask Multica- </button>+ <Tooltip delay={300}>+ <TooltipTrigger+ onClick={toggle}+ className="fixed bottom-4 right-4 z-50 flex size-10 cursor-pointer items-center justify-center rounded-full border bg-background text-muted-foreground shadow-sm transition-transform hover:scale-110 hover:text-accent-foreground active:scale-95"+ >+ <MessageCircle className="size-5" />+ </TooltipTrigger>+ <TooltipContent side="top" sideOffset={10}>Ask Multica</TooltipContent>+ </Tooltip>);}