fix(chat): workaround for chat scroll causing layout misalignment
This commit is contained in:
committed by
virtuacoplenny
parent
011972872e
commit
c0e9f2b95a
@@ -100,7 +100,8 @@ export default class MessageContainer extends AbstractMessageContainer {
|
||||
*/
|
||||
scrollToBottom(withAnimation: boolean) {
|
||||
this._messagesListEndRef.current.scrollIntoView({
|
||||
behavior: withAnimation ? 'smooth' : 'auto'
|
||||
behavior: withAnimation ? 'smooth' : 'auto',
|
||||
block: 'nearest'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user