Fix message history order
This commit is contained in:
parent
b52cfeb93e
commit
e1fec86c4b
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ export default function Index(): JSX.Element {
|
|||
if (isIdResponseMessage(message)) {
|
||||
setAuthorId(message.authorId);
|
||||
} else if (isTextMessage(message)) {
|
||||
setMessageHistory([message, ...messageHistory]);
|
||||
setMessageHistory([...messageHistory, message]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ main {
|
|||
|
||||
#messages-container {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
flex-direction: column;
|
||||
overflow-y: scroll;
|
||||
> :nth-child(even) {
|
||||
background-color: lightgray;
|
||||
|
|
Reference in a new issue