diff --git a/apps/mail/components/connection/add.tsx b/apps/mail/components/connection/add.tsx index ebe9bca7b..da242e08b 100644 --- a/apps/mail/components/connection/add.tsx +++ b/apps/mail/components/connection/add.tsx @@ -12,8 +12,8 @@ import { authClient } from '@/lib/auth-client'; import { Plus, UserPlus } from 'lucide-react'; import { useLocation } from 'react-router'; import { useTranslations } from 'use-intl'; -import { Button } from '../ui/button'; import { motion } from 'motion/react'; +import { Button } from '../ui/button'; import { cn } from '@/lib/utils'; import { useMemo } from 'react'; import { toast } from 'sonner'; diff --git a/apps/mail/components/mail/mail-list.tsx b/apps/mail/components/mail/mail-list.tsx index 29d6fc20f..fd827db7b 100644 --- a/apps/mail/components/mail/mail-list.tsx +++ b/apps/mail/components/mail/mail-list.tsx @@ -892,8 +892,8 @@ export const MailList = memo( if (!vListRef.current) return; const endIndex = vListRef.current.findEndIndex(); if ( - // if the shown items are last 2 items, load more - Math.abs(filteredItems.length - 1 - endIndex) < 1 && + // if the shown items are last 5 items, load more + Math.abs(filteredItems.length - 1 - endIndex) < 5 && !isLoading && !isFetchingNextPage && !isFetchingMail && diff --git a/apps/mail/components/navigation.tsx b/apps/mail/components/navigation.tsx index a693f1e3c..c1e5b133f 100644 --- a/apps/mail/components/navigation.tsx +++ b/apps/mail/components/navigation.tsx @@ -82,7 +82,7 @@ export function Navigation() { return ( <> {/* Desktop Navigation - Hidden on mobile */} -
+