change position new message

This commit is contained in:
PhilReact 2024-11-14 07:08:00 +02:00
parent c4b09db91d
commit 9f57400297

View File

@ -118,7 +118,10 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
}); });
return ( return (
<> <div style={{
height: '100%',
position: 'relative'
}}>
<div ref={parentRef} style={{ height: '100%', overflow: 'auto', position: 'relative', display: 'flex' }}> <div ref={parentRef} style={{ height: '100%', overflow: 'auto', position: 'relative', display: 'flex' }}>
<div <div
style={{ style={{
@ -223,7 +226,7 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
Scroll to Unread Messages Scroll to Unread Messages
</button> </button>
)} )}
</> </div>
); );
}; };