Spaces:
Running
Running
axeronis commited on
Commit ·
dd54eac
1
Parent(s): 95ace1e
fix: Chats page scroll lock, Mobile Summary Drawer position (top-16/bottom-14)
Browse filesFiles changed (2)
276 unmodified lines277278279280281282283284285286287288289290291292276 unmodified linesanimate={{ opacity: 1 }}exit={{ opacity: 0 }}onClick={() => setIsMobileSummaryOpen(false)}className="lg:hidden fixed inset-0 bg-black/50 z-40"/>{/* Drawer */}<motion.divinitial={{ x: '100%' }}animate={{ x: 0 }}exit={{ x: '100%' }}transition={{ type: 'spring', damping: 30, stiffness: 300 }}className="lg:hidden fixed right-0 top-0 bottom-0 w-full sm:w-96 bg-surface border-l border-white/10 z-50 flex flex-col"><div className="sticky top-0 bg-surface-elevated border-b border-white/10 px-4 py-3 flex items-center justify-between z-10"><h3 className="font-semibold text-white">AI Summary</h3>276 unmodified lines277278279280281282283284285286287288289290291276 unmodified linesanimate={{ opacity: 1 }}exit={{ opacity: 0 }}onClick={() => setIsMobileSummaryOpen(false)}className="lg:hidden fixed inset-0 top-16 bottom-14 bg-black/50 z-30"/>{/* Drawer */}<motion.divanimate={{ x: 0 }}exit={{ x: '100%' }}transition={{ type: 'spring', damping: 30, stiffness: 300 }}className="lg:hidden fixed right-0 top-16 bottom-14 w-full sm:w-96 bg-surface border-l border-white/10 z-30 flex flex-col shadow-2xl"><div className="sticky top-0 bg-surface-elevated border-b border-white/10 px-4 py-3 flex items-center justify-between z-10"><h3 className="font-semibold text-white">AI Summary</h3>
8 unmodified lines9101112131471 unmodified lines868788899091928 unmodified linesimport { usePathname } from 'next/navigation'import { useAuth } from '@/contexts/AuthContext'import { useEffect } from 'react'import { useRouter } from 'next/navigation'import { MobileHeader, MobileSidebarWrapper } from '@/components/MobileNav'71 unmodified lines</div>{/* Main Content - with padding for fixed header (64px) and nav (56px) */}<main className="flex-1 overflow-y-auto overflow-x-hidden w-full pt-16 pb-14 md:pt-0 md:pb-0">{children}</main>8 unmodified lines910111213141571 unmodified lines87888990919293949596978 unmodified linesimport { usePathname } from 'next/navigation'import { useAuth } from '@/contexts/AuthContext'import { cn } from '@/lib/utils'import { useEffect } from 'react'import { useRouter } from 'next/navigation'import { MobileHeader, MobileSidebarWrapper } from '@/components/MobileNav'71 unmodified lines</div>{/* Main Content - with padding for fixed header (64px) and nav (56px) */}<main className={cn("flex-1 w-full pt-16 pb-14 md:pt-0 md:pb-0 overflow-x-hidden",// Disable global scroll on chats page to fix layout issuespathname?.startsWith('/chats') ? "overflow-y-hidden" : "overflow-y-auto")}>{children}</main>
frontend/app/chats/page.tsx+2-3
frontend/app/layout.tsx+6-1