Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Refactor Tooltip Implementation in ChatHeader for Enhanced Usability

Salman-Ahamed1416c86a7d08
diff --git a/packages/app/src/react/features/ai-chat/components/header.tsx b/packages/app/src/react/features/ai-chat/components/header.tsx
index d34f58f0..fe111f3c 100644
--- a/packages/app/src/react/features/ai-chat/components/header.tsx
+++ b/packages/app/src/react/features/ai-chat/components/header.tsx
@@ -345,13 +345,18 @@ export const ChatHeader: FC = () => {
{/* Right side - Action buttons */}
<div className=" flex items-center justify-center gap-2">
- <Tooltip content={<>New&nbsp;Chat</>} placement="bottom">
- <button
- className="cursor-pointer w-6 h-6 flex items-center justify-center"
- onClick={() => chat.resetSession()}
- >
- <FaRegPenToSquare className="text-slate-500 w-4 h-4" />
- </button>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <button
+ className="cursor-pointer w-6 h-6 flex items-center justify-center"
+ onClick={() => chat.resetSession()}
+ >
+ <FaRegPenToSquare className="text-slate-500 w-4 h-4" />
+ </button>
+ </TooltipTrigger>
+ <TooltipContent side="bottom">
+ <p>New Chat</p>
+ </TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger asChild>