diff --git a/apps/masterbots.ai/app/layout.tsx b/apps/masterbots.ai/app/layout.tsx index 074efcc2..fae733ba 100644 --- a/apps/masterbots.ai/app/layout.tsx +++ b/apps/masterbots.ai/app/layout.tsx @@ -1,34 +1,25 @@ -import { GeistMono } from 'geist/font/mono' -import { GeistSans } from 'geist/font/sans' import '@/app/globals.css' import { Header } from '@/components/layout/header/header' import { Providers } from '@/components/layout/providers' +import { Toaster } from '@/components/ui/sonner' import { cn } from '@/lib/utils' import { GoogleAnalytics } from '@next/third-parties/google' -import { Metadata } from 'next' +import { GeistMono } from 'geist/font/mono' +import { GeistSans } from 'geist/font/sans' +import type { Metadata } from 'next' import NextTopLoader from 'nextjs-toploader' -import { Toaster } from '@/components/ui/sonner' export default function RootLayout({ children }: RootLayoutProps) { return ( - - - - + + + +
{children}
@@ -45,7 +36,7 @@ export const metadata: Metadata = { metadataBase: new URL(`https://${process.env.VERCEL_URL}`), title: { default: 'Masterbots', - template: `%s - Masterbots` + template: `%s - Masterbots`, }, description: 'Elevating AI Beyond ChatGPT: Specialized Chatbots, Social Sharing and User-Friendly Innovation', @@ -59,9 +50,9 @@ export const metadata: Metadata = { url: `${process.env.BASE_URL || ''}/api/og`, width: 1232, height: 928, - alt: 'Masterbots' - } - ] + alt: 'Masterbots', + }, + ], }, twitter: { title: 'Masterbots', @@ -74,25 +65,25 @@ export const metadata: Metadata = { url: `${process.env.BASE_URL || ''}/api/og`, width: 1232, height: 928, - alt: 'Masterbots' - } - ] + alt: 'Masterbots', + }, + ], }, icons: { icon: '/favicon.ico', shortcut: '/favicon-300x300.png', - apple: '/apple-touch-icon.png' + apple: '/apple-touch-icon.png', }, other: { - 'google-site-verification': 'By9aM0DbPDDO9qa7Y3zNwDFyYuSPslVzje76EVOCcY0' - } + 'google-site-verification': 'By9aM0DbPDDO9qa7Y3zNwDFyYuSPslVzje76EVOCcY0', + }, } export const viewport = { themeColor: [ { media: '(prefers-color-scheme: light)', color: 'white' }, - { media: '(prefers-color-scheme: dark)', color: 'black' } - ] + { media: '(prefers-color-scheme: dark)', color: 'black' }, + ], } interface RootLayoutProps { diff --git a/apps/masterbots.ai/components/routes/chat/chat-list.tsx b/apps/masterbots.ai/components/routes/chat/chat-list.tsx index e0a37b6b..fbc55dab 100644 --- a/apps/masterbots.ai/components/routes/chat/chat-list.tsx +++ b/apps/masterbots.ai/components/routes/chat/chat-list.tsx @@ -108,7 +108,7 @@ export function ChatList({
0 && pairs.length > 0 && ( )} - {pairs.map((pair: MessagePair, key: number, pairsArray) => ( - - ))} + {pairs.map((pair: MessagePair, key: number, pairsArray) => pair.chatGptMessage[0] && pair.userMessage ? ( + <> + + {pairsArray.length > 1 && key === pairsArray.length - 1 ? ( + + ) : null} + + ) : null)} ) } @@ -210,11 +215,13 @@ export function MessagePairAccordion({ return (
@@ -278,7 +283,6 @@ export function MessagePairAccordion({ 'mx-4 md:mx-[46px] px-1 py-4 h-full', { '!border-[transparent]': !isThread && index === 0, - '[&>div>div>div_*]:!text-xs': isPrevious }, props.chatContentClass )} @@ -288,7 +292,7 @@ export function MessagePairAccordion({ Previous Thread -
+
Continued from{' '} “{pair.userMessage.content.trim()}” thread {activeThread?.thread?.user?.username @@ -299,7 +303,6 @@ export function MessagePairAccordion({ ) : ( '' )} - {pair.chatGptMessage.length > 0 ? pair.chatGptMessage.map(message => ( - {!isBrowse && ( -
- - {thread?.isPublic ? 'Public' : 'Private'} - -
- )} - - - - + + + {/* Toggle thread visibility option (only for thread owner) */} {isUser && ( event.preventDefault()} + onSelect={(event) => event.preventDefault()} >