Compare commits

...
Author SHA1 Message Date
Chris Tate f408335565 Merge remote-tracking branch 'origin/main' into ctate/better-chat-2 2026-02-09 10:24:31 -06:00
Chris Tate 4a3164d01a chat fixes 2026-02-09 10:17:54 -06:00
Chris Tate c264da6de5 fix lint 2026-02-09 09:39:03 -06:00
Chris Tate 4bacc0649d fixes 2026-02-09 09:38:20 -06:00
Chris Tate 14e7ced677 better chat 2026-02-09 09:27:22 -06:00
+3 -2
View File
@@ -242,7 +242,7 @@ export function DocsChat() {
if (error) setOpen(true);
}, [error]);
const showMessages = open && (messages.length > 0 || !!error);
const showMessages = open && (messages.length > 0 || !!error || isLoading);
const showSuggestions = focused && messages.length === 0 && !isLoading;
return (
@@ -252,7 +252,7 @@ export function DocsChat() {
className={`mx-auto px-4 pb-4 [&>*]:pointer-events-auto transition-all duration-300 ${focused || showMessages ? "max-w-xl" : "max-w-56"}`}
>
<div
className="border border-background rounded-lg overflow-hidden"
className={`border rounded-lg overflow-hidden ${focused || showMessages ? "border-background" : "border-[var(--chat-bg)]"}`}
style={{ backgroundColor: "var(--chat-bg)" }}
>
{/* Suggestions panel */}
@@ -270,6 +270,7 @@ export function DocsChat() {
type="button"
onMouseDown={(e) => {
e.preventDefault();
setOpen(true);
sendMessage({ text: s });
}}
className="text-xs px-3 py-1.5 rounded-full border border-background bg-background font-medium text-muted-foreground hover:text-foreground transition-colors"