diff --git a/src/components/SupportChat.vue b/src/components/SupportChat.vue index 285ce67..85c2eb2 100644 --- a/src/components/SupportChat.vue +++ b/src/components/SupportChat.vue @@ -9,6 +9,7 @@ import { Input } from '@/components/ui/input' import { ScrollArea } from '@/components/ui/scroll-area' import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar' import { Send, AlertCircle } from 'lucide-vue-next' +import MessageBubble from '@/components/ui/message-bubble/MessageBubble.vue' const nostrStore = useNostrStore() const input = ref('') @@ -121,90 +122,104 @@ const formatDate = (timestamp: number) => { } return date.toLocaleDateString() } + +const getMessageGroupClasses = (sent: boolean) => { + return [ + 'group flex flex-col gap-0.5 animate-in slide-in-from-bottom-2', + sent ? 'items-end' : 'items-start' + ] +}