From 3d2d056f64eddf7b74511b49f168faccd2f54078 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sun, 19 Oct 2025 22:47:45 +0530 Subject: [PATCH] Update Chat.tsx --- src/components/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Chat.tsx b/src/components/Chat.tsx index 5265845..22e0a48 100644 --- a/src/components/Chat.tsx +++ b/src/components/Chat.tsx @@ -16,7 +16,7 @@ const Chat = () => { useEffect(() => { const updateDividerWidth = () => { if (dividerRef.current) { - setDividerWidth(dividerRef.current.scrollWidth); + setDividerWidth(dividerRef.current.offsetWidth); } };