@pubuduth-aplicy/chat-ui 2.1.60 → 2.1.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubuduth-aplicy/chat-ui",
3
- "version": "2.1.60",
3
+ "version": "2.1.61",
4
4
  "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -103,7 +103,7 @@ const Messages = () => {
103
103
  useEffect(() => {
104
104
  if (messages.length > 0) {
105
105
  setTimeout(() => {
106
- lastMessageRef.current?.scrollIntoView({ behavior: "smooth" });
106
+ lastMessageRef.current?.scrollIntoView({ behavior: "smooth",block:'nearest' });
107
107
  }, 100);
108
108
  }
109
109
  }, [messages.length]);