llmasaservice-ui 0.6.1 → 0.6.2
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/ChatPanel.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -314,7 +314,7 @@ var ChatPanel = ({
|
|
|
314
314
|
(0, import_react3.useEffect)(() => {
|
|
315
315
|
var _a;
|
|
316
316
|
if (scrollToEnd) {
|
|
317
|
-
(_a = bottomRef.current) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
|
|
317
|
+
(_a = bottomRef.current) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
318
318
|
} else {
|
|
319
319
|
const responseArea = responseAreaRef.current;
|
|
320
320
|
if (responseArea) {
|
package/dist/index.mjs
CHANGED
|
@@ -281,7 +281,7 @@ var ChatPanel = ({
|
|
|
281
281
|
useEffect(() => {
|
|
282
282
|
var _a;
|
|
283
283
|
if (scrollToEnd) {
|
|
284
|
-
(_a = bottomRef.current) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
|
|
284
|
+
(_a = bottomRef.current) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
285
285
|
} else {
|
|
286
286
|
const responseArea = responseAreaRef.current;
|
|
287
287
|
if (responseArea) {
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -248,7 +248,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
248
248
|
|
|
249
249
|
useEffect(() => {
|
|
250
250
|
if (scrollToEnd) {
|
|
251
|
-
bottomRef.current?.scrollIntoView({ behavior: "smooth" });
|
|
251
|
+
bottomRef.current?.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
252
252
|
} else {
|
|
253
253
|
const responseArea = responseAreaRef.current as any;
|
|
254
254
|
if (responseArea) {
|
|
@@ -795,7 +795,7 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
795
795
|
)}
|
|
796
796
|
|
|
797
797
|
<div ref={bottomRef} />
|
|
798
|
-
|
|
798
|
+
|
|
799
799
|
{hasScroll && !isAtBottom && (
|
|
800
800
|
<button className="scroll-button" onClick={scrollToBottom}>
|
|
801
801
|
↓
|