fix merge

This commit is contained in:
JzoNg 2024-03-18 13:11:17 +08:00
parent ea4476ac6e
commit 711f7107b4
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,9 @@ const Chat: FC<ChatProps> = ({
}, [])
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`