From 711f7107b43e0eb083c58c837d569c3decceef66 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 18 Mar 2024 13:11:17 +0800 Subject: [PATCH] fix merge --- web/app/components/base/chat/chat/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsx index 672203cf5d..72031a9517 100644 --- a/web/app/components/base/chat/chat/index.tsx +++ b/web/app/components/base/chat/chat/index.tsx @@ -91,6 +91,9 @@ const Chat: FC = ({ }, []) const handleWindowResize = useCallback(() => { + if (chatContainerRef.current) + setWidth(document.body.clientWidth - (chatContainerRef.current?.clientWidth + 16) - 8) + if (chatContainerRef.current && chatFooterRef.current) chatFooterRef.current.style.width = `${chatContainerRef.current.clientWidth}px`