Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Improve Chatbot UI Responsiveness and Alignment #91

Closed
Closed
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
10 changes: 5 additions & 5 deletions client/app/components/ChatBot/ChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ChatBot: React.FC = () => {
onClick={() => setIsOpen(!isOpen)}
className="bg-blue-600 text-white p-4 rounded-full shadow-lg"
>
<ChatBubbleLeftRightIcon className="w-6 h-6" />
<ChatBubbleLeftRightIcon className="w-6 h-6 " />
</motion.button>

<AnimatePresence>
Expand All @@ -72,7 +72,7 @@ const ChatBot: React.FC = () => {
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.95, y: 20 }}
transition={{ duration: 0.2 }}
className="absolute bottom-16 right-0 w-96 h-[32rem] bg-white rounded-lg shadow-xl overflow-hidden flex flex-col"
className="absolute bottom-16 right-0 w-50 md:pt-40 md:w-96 h-[32rem] bg-white rounded-lg shadow-xl overflow-hidden flex flex-col"
>
<div className="bg-blue-600 text-white p-4 text-center font-semibold">
Agora Chatbot
Expand All @@ -99,8 +99,8 @@ const ChatBot: React.FC = () => {
))}
<div ref={messageEndRef} />
</div>
<form onSubmit={handleSubmit} className="p-4 bg-gray-100">
<div className="flex items-center bg-white rounded-full overflow-hidden shadow">
<form onSubmit={handleSubmit} className="p-4 bg-gray-200">
<div className="flex items-center bg-white rounded-full overflow-hidden shadow-lg">
<input
type="text"
value={inputMessage}
Expand All @@ -123,4 +123,4 @@ const ChatBot: React.FC = () => {
);
};

export default ChatBot;
export default ChatBot;