File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
components/ConversationCard Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,6 @@ function ConversationCard(props) {
77
77
if ( props . onUpdate ) props . onUpdate ( port , session , conversationItemData )
78
78
} , [ session , conversationItemData ] )
79
79
80
- useEffect ( ( ) => {
81
- bodyRef . current . scrollTo ( {
82
- top : bodyRef . current . scrollHeight ,
83
- behavior : 'instant' ,
84
- } )
85
- } , [ session ] )
86
-
87
80
useEffect ( ( ) => {
88
81
const { offsetHeight, scrollHeight, scrollTop } = bodyRef . current
89
82
if (
@@ -92,7 +85,7 @@ function ConversationCard(props) {
92
85
) {
93
86
bodyRef . current . scrollTo ( {
94
87
top : scrollHeight ,
95
- behavior : 'smooth ' ,
88
+ behavior : 'instant ' ,
96
89
} )
97
90
}
98
91
} , [ conversationItemData ] )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export const defaultConfig = {
105
105
preferredLanguage : getNavigatorLanguage ( ) ,
106
106
clickIconAction : 'popup' ,
107
107
insertAtTop : isMobile ( ) ,
108
- lockWhenAnswer : false ,
108
+ lockWhenAnswer : true ,
109
109
answerScrollMargin : 200 ,
110
110
autoRegenAfterSwitchModel : false ,
111
111
selectionToolsNextToInputBox : false ,
You can’t perform that action at this time.
0 commit comments