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:
@@ -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 ? (
|
||||||
|
Reference in New Issue
Block a user