diff --git a/apps/masterbots.ai/components/shared/thread-accordion.tsx b/apps/masterbots.ai/components/shared/thread-accordion.tsx index e0f082fd..e55d3b7f 100644 --- a/apps/masterbots.ai/components/shared/thread-accordion.tsx +++ b/apps/masterbots.ai/components/shared/thread-accordion.tsx @@ -25,7 +25,8 @@ export function ThreadAccordion({ // disable automatic client fetch by default // ThreadList sets this to true to load the rest of messages inside ThreadDialog or ThreadListAccordion // ThreadList only receives the first question and answer - showHeading = true + showHeading = true, + className = '' }: ThreadAccordionProps) { const pathname = usePathname() const router = useRouter() @@ -72,7 +73,7 @@ export function ThreadAccordion({ return (
-
+
{p.userMessage.content}
@@ -124,7 +125,7 @@ export function ThreadAccordion({ {p.chatGptMessage.map(message => ( {/* Frist level question and excerpt visible on lists */} - + {/* TODO: we need to slide down the content */} - + {/* Secod level accordion with follow up questions showHeading must be false as we already have in screen on AccordionTrigger above */}
@@ -60,6 +60,7 @@ export function ThreadListAccordion({ showHeading={false} thread={thread} initialMessagePairs={createMessagePairs(thread.messages)} + className='border-r-[transparent]' />
diff --git a/apps/masterbots.ai/components/ui/accordion.tsx b/apps/masterbots.ai/components/ui/accordion.tsx index 176882b4..f6fd1c5b 100644 --- a/apps/masterbots.ai/components/ui/accordion.tsx +++ b/apps/masterbots.ai/components/ui/accordion.tsx @@ -38,7 +38,7 @@ const AccordionTrigger = React.forwardRef< > svg]:rotate-180', + 'flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180', className )} ref={ref} @@ -60,7 +60,7 @@ const AccordionContent = React.forwardRef< ref={ref} {...props} > -
{children}
+
{children}
))