This commit is contained in:
parent
2c96c983b5
commit
bd58362612
|
|
@ -75,7 +75,7 @@ export const ChatMessages: FC<ChatMessagesProps> = ({}) => {
|
||||||
// 3. 给外层 div 加上 overflow-auto,并且要有高度限制
|
// 3. 给外层 div 加上 overflow-auto,并且要有高度限制
|
||||||
<div
|
<div
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className="flex-1 overflow-auto px-4"
|
className="w-full h-screen overflow-auto"
|
||||||
style={{ maxHeight: "100vh" }}
|
style={{ maxHeight: "100vh" }}
|
||||||
>
|
>
|
||||||
{sorted.map((chatMessage, index, array) => {
|
{sorted.map((chatMessage, index, array) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue