Files
jiang13-bbs/frontend/app/chat/layout.tsx
freefire e6f8fadbe5 fix(frontend): 聊天页单屏布局并消除 F5 滚底闪烁
锁定视口避免双滚动;消息列表改用 flex-col-reverse,SSR/无 JS 默认贴最新消息。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 00:50:16 +08:00

15 lines
413 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 聊天路由布局:标记 data-chat-viewport,配合 globals.css
* 将页面锁在一屏内(隐藏页脚、收紧 main 内边距),仅对话区滚动。
*/
export default function ChatLayout({ children }: { children: React.ReactNode }) {
return (
<div
data-chat-viewport
className="flex flex-col flex-1 min-h-0 w-full max-w-6xl mx-auto"
>
{children}
</div>
);
}