change position new message

This commit is contained in:
PhilReact 2024-11-14 07:08:19 +02:00
parent ff4c4bb8d8
commit 108bbbe23f

View File

@ -118,7 +118,10 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
});
return (
<>
<div style={{
height: '100%',
position: 'relative'
}}>
<div ref={parentRef} style={{ height: '100%', overflow: 'auto', position: 'relative', display: 'flex' }}>
<div
style={{
@ -209,8 +212,8 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
<button
onClick={() => scrollToBottom()}
style={{
position: 'absolute',
bottom: 20,
position: 'absolute',
right: 20,
backgroundColor: '#ff5a5f',
color: 'white',
@ -223,7 +226,7 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
Scroll to Unread Messages
</button>
)}
</>
</div>
);
};