Skip to content

Commit 9e23b94

Browse files
committed
added border and x button
1 parent d29476a commit 9e23b94

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/chatbot/ChatBot.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default function Chatbot() {
103103
}
104104
}, [messages]);
105105

106+
//powered by
106107
return (
107108
<>
108109
<div className="fixed bottom-4 right-4 z-50">
@@ -112,17 +113,14 @@ export default function Chatbot() {
112113
className="bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:hover:bg-gray-50/90"
113114
onClick={() => setIsOpen((prevState) => !prevState)}
114115
>
115-
<MessageCircleIcon className="h-6 w-6" />
116+
{isOpen ? <XIcon className="h-6 w-6" /> : <MessageCircleIcon className="h-6 w-6" />}
116117
<span className="sr-only">Open Chatbot</span>
117118
</Button>
118119
</div>
119120
{/* "fixed top-[calc(50%-150px)] left-[calc(90%-100px)] transform -translate-x-1/2 z-50" */}
120121
{isOpen && (
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">
122+
<div className="fixed inset-0 z-50 flex items-end justify-end p-4 sm:p-6 bottom-[50px]">
123+
<Card className="w-full max-w-md border-2 border-grey-400">
126124
<CardHeader className="flex flex-row items-center">
127125
<div className="flex items-center space-x-4">
128126
<Avatar>

0 commit comments

Comments
 (0)