diff --git a/src/app/globals.css b/src/app/globals.css index e387a41..906b102 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -100,8 +100,8 @@ div { /* Scroll to top button */ .scroll-to-top { position: fixed; - bottom: 5rem; - right: 2%; + bottom: 1.5rem; + right: 6rem; z-index: 1000; } diff --git a/src/components/ai-chat/ChatWidgetClient.tsx b/src/components/ai-chat/ChatWidgetClient.tsx index b48a4de..a11b9d3 100644 --- a/src/components/ai-chat/ChatWidgetClient.tsx +++ b/src/components/ai-chat/ChatWidgetClient.tsx @@ -71,7 +71,7 @@ export default function ChatWidgetClient() { {isOpen && (
{/* Header */} -
+

Ask about Amr

); })} - {isLoading && ( -
-
-
-
-
+ {status === "submitted" && + messages[messages.length - 1]?.role !== "assistant" && ( +
+
+
+
+
+
-
- )} + )} {error && (
{isRateLimited @@ -163,7 +182,7 @@ export default function ChatWidgetClient() { isIconOnly type="submit" variant="primary" - className="bg-teal-600 text-white min-w-8 w-8 h-8" + className="bg-primary text-white min-w-8 w-8 h-8" isDisabled={isLoading || !input?.trim()} > @@ -178,7 +197,7 @@ export default function ChatWidgetClient() { isIconOnly onClick={toggleChat} aria-label="Open AI assistant" - className="h-14 w-14 rounded-full bg-teal-600 text-white shadow-lg hover:scale-110 transition-transform" + className="h-14 w-14 rounded-full bg-primary text-white shadow-lg hover:scale-110 transition-transform" > {isOpen ? : }