diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index f3640b1..889f22d 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -18,6 +18,7 @@ interface LayoutProps { export default function Layout({ showBottomNav = false, contentClassName }: LayoutProps) { const { pathname } = useLocation(); const { contentPaddingClassName, hasHeader } = getHeaderPresentation(pathname); + const isChatRoomPage = pathname.startsWith('/chats/') && pathname !== '/chats'; const mainBackgroundClassName = pathname === '/chats' ? 'bg-white' : 'bg-background'; const { bottomNavRef, bottomOverlayInset, handleLayoutElement, layoutElement, mainRef } = useLayoutElements(showBottomNav); @@ -48,7 +49,8 @@ export default function Layout({ showBottomNav = false, contentClassName }: Layo ref={mainRef} style={mainStyle} className={cn( - 'box-border flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden', + 'box-border flex min-h-0 flex-1 flex-col [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden', + isChatRoomPage ? 'overflow-hidden' : 'overflow-y-auto overscroll-contain', mainBackgroundClassName, hasHeader && contentPaddingClassName, contentClassName diff --git a/src/pages/Chat/ChatRoom.tsx b/src/pages/Chat/ChatRoom.tsx index 61f539c..9471ba4 100644 --- a/src/pages/Chat/ChatRoom.tsx +++ b/src/pages/Chat/ChatRoom.tsx @@ -154,7 +154,7 @@ function ChatRoom() { }, [value]); return ( -