File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ export default function Chatbot() {
84
84
85
85
useEffect ( ( ) => {
86
86
console . log ( "aiChatBot" , flags [ "ai-chatbot" ] ) ;
87
- console . log ( messages ) ;
88
87
} , [ messages ] ) ;
89
88
90
89
const surveyResponseNotification = ( surveyResponse : string ) => {
@@ -100,7 +99,6 @@ export default function Chatbot() {
100
99
101
100
useEffect ( ( ) => {
102
101
if ( chatContentRef . current ) {
103
- console . log ( chatContentRef )
104
102
chatContentRef . current . scrollTop = chatContentRef . current . scrollHeight ;
105
103
}
106
104
} , [ messages ] ) ;
@@ -118,10 +116,13 @@ export default function Chatbot() {
118
116
< span className = "sr-only" > Open Chatbot</ span >
119
117
</ Button >
120
118
</ div >
121
-
119
+ { /* "fixed top-[calc(50%-150px)] left-[calc(90%-100px)] transform -translate-x-1/2 z-50" */ }
122
120
{ isOpen && (
123
- < div className = "fixed top-[calc(50%-150px)] left-[calc(90%-100px)] transform -translate-x-1/2 z-50" >
124
- < Card className = "max-w-md w-[500px]" >
121
+ < div
122
+ className = "fixed inset-0 z-50 flex items-end justify-end p-4 sm:p-6 bottom-[50px]"
123
+ onClick = { ( ) => setIsOpen ( ( prevState ) => ! prevState ) }
124
+ >
125
+ < Card className = "w-full max-w-md" >
125
126
< CardHeader className = "flex flex-row items-center" >
126
127
< div className = "flex items-center space-x-4" >
127
128
< Avatar >
You can’t perform that action at this time.
0 commit comments