Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/[lang]/components/landing-ai-agent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ export default function LandingAIAgent() {
...prevState,
closed: false
}));

// Scroll to bottom after 100ms to avoid the window opening and closing immediately
setTimeout(() => {
scrollToBottom();
}, 100);
}}>
<span className="hidden lg:block">Ask HyperBot</span>
<span className="block lg:hidden">
Expand Down Expand Up @@ -348,6 +353,7 @@ export default function LandingAIAgent() {
);
}

// Chat UI
return (
<div
className={cn(
Expand Down Expand Up @@ -562,7 +568,8 @@ export default function LandingAIAgent() {
{/* Default messages */}
<div
className={cn(
"flex space-x-2 overflow-x-auto whitespace-nowrap"
"flex space-x-2 overflow-x-auto whitespace-nowrap",
windowState.mode === "chat" && messages.length > 0 && "hidden"
)}>
{DEFAULT_MESSAGES.map(({ text, id }) => (
<Button
Expand Down