fix(support-chat): ground identity and improve widget UX
Deploy Canina / deploy (push) Successful in 3m43s
Deploy Canina / deploy (push) Successful in 3m43s
This commit is contained in:
1 parent
d9ff4aef58
commit
c1a5223798
8 files changed
+43
-29
No files matched your search
@@ -422,7 +422,7 @@ export default function AuthModal({ isOpen, onClose }: AuthModalProps) {
|
||||
return (
|
||||
<AnimatePresence>
|
||||
{isOpen && (
|
||||
<div className="fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 font-vazir overflow-y-auto" dir="rtl">
|
||||
<div className="fixed inset-0 z-[10000] flex items-end sm:items-center justify-center p-0 sm:p-4 font-vazir overflow-y-auto" dir="rtl">
|
||||
{/* Backdrop */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
|
||||
@@ -168,7 +168,7 @@ export default function SupportChat() {
|
||||
if (!config?.enabled) return configError ? <span role="status" className="sr-only">تنظیمات پشتیبان هوشمند در دسترس نیست.</span> : null;
|
||||
const botIcon = { chat: '💬', paw: '🐾', bot: '🤖' }[config.icon];
|
||||
return (
|
||||
<aside dir="rtl" className="fixed bottom-20 left-5 z-[9999] max-w-[calc(100vw-2.5rem)] font-vazir select-none">
|
||||
<aside dir="rtl" className="fixed bottom-20 left-5 z-30 max-w-[calc(100vw-2.5rem)] font-vazir select-none">
|
||||
{/* Floating Launcher Button */}
|
||||
<button
|
||||
type="button"
|
||||
@@ -199,7 +199,7 @@ export default function SupportChat() {
|
||||
{open && (
|
||||
<section
|
||||
aria-label="پشتیبان کنینا"
|
||||
className="absolute bottom-16 left-0 flex flex-col w-[360px] sm:w-[400px] h-[540px] max-h-[calc(100vh-7rem)] rounded-2xl border border-medical-gray-200 bg-white/95 backdrop-blur-md shadow-2xl overflow-hidden transition-all duration-300 animate-in fade-in slide-in-from-bottom-4"
|
||||
className="absolute bottom-16 left-0 flex flex-col w-[min(360px,calc(100vw-2rem))] sm:w-[400px] h-[540px] max-h-[calc(100vh-7rem)] rounded-2xl border border-medical-gray-200 bg-white/95 backdrop-blur-md shadow-2xl overflow-hidden transition-all duration-300 animate-in fade-in slide-in-from-bottom-4"
|
||||
>
|
||||
{/* Header */}
|
||||
<div className="bg-gradient-to-r from-canina-blue to-medical-gray-800 text-white p-4 flex items-center justify-between border-b border-white/10">
|
||||
@@ -267,18 +267,7 @@ export default function SupportChat() {
|
||||
</div>
|
||||
))}
|
||||
|
||||
{busy && (
|
||||
<div className="flex justify-end">
|
||||
<div className="rounded-2xl rounded-tl-sm bg-medical-gray-100 border border-medical-gray-200 px-4 py-2.5 text-medical-gray-600 flex items-center gap-1.5 shadow-sm">
|
||||
<span className="text-[11px]">در حال بررسی و تنظیم پاسخ</span>
|
||||
<span className="flex gap-1 mr-1">
|
||||
<span className="h-1.5 w-1.5 rounded-full bg-canina-blue animate-bounce"></span>
|
||||
<span className="h-1.5 w-1.5 rounded-full bg-canina-blue animate-bounce [animation-delay:0.2s]"></span>
|
||||
<span className="h-1.5 w-1.5 rounded-full bg-canina-blue animate-bounce [animation-delay:0.4s]"></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
|
||||
{/* Input & Footer */}
|
||||
|
||||
Reference in new issue
Block a user