Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge remote-tracking branch 'origin/dev' into mobile/init-mobile-app
Vanaliteadfcb35ca6e5
diff --cc web-app/src/routes/index.tsxindex 0312fdaba,a23b29de4..b3e7862e5--- a/web-app/src/routes/index.tsx+++ b/web-app/src/routes/index.tsx@@@ -19,7 -18,8 +19,9 @@@ type SearchParams =import DropdownAssistant from '@/containers/DropdownAssistant'import { useEffect } from 'react'import { useThreads } from '@/hooks/useThreads'+import { useMobileScreen } from '@/hooks/useMediaQuery'+ import { PlatformFeatures } from '@/lib/platform/const'+ import { PlatformFeature } from '@/lib/platform/types'export const Route = createFileRoute(route.home as any)({component: Index,@@@ -55,35 -54,17 +57,35 @@@ function Index()}return (- <div className="flex h-full flex-col flex-justify-center">+ <div className="flex h-full flex-col justify-center py-5"><HeaderPage>- <DropdownAssistant />+ {PlatformFeatures[PlatformFeature.ASSISTANTS] && <DropdownAssistant />}</HeaderPage>- <div className="h-full px-4 md:px-8 overflow-y-auto flex flex-col gap-2 justify-center">- <div className="w-full md:w-4/6 mx-auto">- <div className="mb-8 text-center">- <h1 className="font-editorialnew text-main-view-fg text-4xl">+ <div className={cn(+ "h-full overflow-y-auto flex flex-col gap-2 justify-center px-3 sm:px-4 md:px-8 py-4 md:py-0",+ )}>+ <div className={cn(+ "mx-auto",+ // Full width on mobile, constrained on desktop+ isMobile ? "w-full max-w-full" : "w-full md:w-4/6"+ )}>+ <div className={cn(+ "text-center",+ // Adjust spacing for mobile+ isMobile ? "mb-6" : "mb-8"+ )}>+ <h1 className={cn(+ "font-editorialnew text-main-view-fg",+ // Responsive title size+ isMobile ? "text-2xl sm:text-3xl" : "text-4xl"+ )}>{t('chat:welcome')}</h1>- <p className="text-main-view-fg/70 text-lg mt-2">+ <p className={cn(+ "text-main-view-fg/70 mt-2",+ // Responsive description size+ isMobile ? "text-base" : "text-lg"+ )}>{t('chat:description')}</p></div>diff --cc web-app/src/routes/threads/$threadId.tsxindex 8c61ef550,a7c62c807..286f56270--- a/web-app/src/routes/threads/$threadId.tsx+++ b/web-app/src/routes/threads/$threadId.tsx@@@ -22,8 -22,10 +22,10 @@@ import { useAppearance } from '@/hooks/import { ContentType, ThreadMessage } from '@janhq/core'import { useTranslation } from '@/i18n/react-i18next-compat'import { useChat } from '@/hooks/useChat'-import { useSmallScreen } from '@/hooks/useMediaQuery'+import { useSmallScreen, useMobileScreen } from '@/hooks/useMediaQuery'import { useTools } from '@/hooks/useTools'+ import { PlatformFeatures } from '@/lib/platform/const'+ import { PlatformFeature } from '@/lib/platform/types'// as route.threadsDetailexport const Route = createFileRoute('/threads/$threadId')({