mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 20:07:51 +00:00
change position new message
This commit is contained in:
parent
ff4c4bb8d8
commit
108bbbe23f
@ -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={{
|
||||
bottom: 20,
|
||||
position: 'absolute',
|
||||
bottom: 20,
|
||||
right: 20,
|
||||
backgroundColor: '#ff5a5f',
|
||||
color: 'white',
|
||||
@ -223,7 +226,7 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
|
||||
Scroll to Unread Messages
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
</div>
|
||||
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user