This commit is contained in:
hailin 2025-05-29 21:36:44 +08:00
parent 2c96c983b5
commit bd58362612
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export const ChatMessages: FC<ChatMessagesProps> = ({}) => {
// 3. 给外层 div 加上 overflow-auto并且要有高度限制
<div
ref={containerRef}
className="flex-1 overflow-auto px-4"
className="w-full h-screen overflow-auto"
style={{ maxHeight: "100vh" }}
>
{sorted.map((chatMessage, index, array) => {