1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-03 14:22:41 +02:00

Fix floating ui

This commit is contained in:
Kamran Ahmed
2025-06-10 17:14:57 +01:00
parent a48b8c6acf
commit c4043cc77a

View File

@@ -346,7 +346,7 @@ export function RoadmapFloatingChat(props: RoadmapChatProps) {
<RoadmapAIChatCard <RoadmapAIChatCard
role="assistant" role="assistant"
jsx={ jsx={
<span> <span className="mt-[2px]">
Hey, I am your AI tutor. How can I help you today? 👋 Hey, I am your AI tutor. How can I help you today? 👋
</span> </span>
} }
@@ -513,7 +513,10 @@ export function RoadmapFloatingChat(props: RoadmapChatProps) {
)} )}
onClick={() => { onClick={() => {
setIsOpen(true); setIsOpen(true);
setTimeout(() => scrollToBottom('instant'), 0); setTimeout(() => {
scrollToBottom('instant');
setShowScrollToBottom(false);
}, 0);
}} }}
> >
{!hasMessages ? ( {!hasMessages ? (