UI fixes
This commit is contained in:
parent
69f1623bdb
commit
72169548d8
@ -3164,10 +3164,6 @@
|
|||||||
if (!floCrypto.isSameAddr(chatAddress, topChatCard.dataset.floAddress)) {
|
if (!floCrypto.isSameAddr(chatAddress, topChatCard.dataset.floAddress)) {
|
||||||
const cloneContact = chatCard.cloneNode(true)
|
const cloneContact = chatCard.cloneNode(true)
|
||||||
chatCard.remove()
|
chatCard.remove()
|
||||||
getRef('chats_list').animate([
|
|
||||||
{ transform: 'translateY(-2rem)' },
|
|
||||||
{ transform: 'none' },
|
|
||||||
], animOptions)
|
|
||||||
getRef('chats_list').prepend(cloneContact)
|
getRef('chats_list').prepend(cloneContact)
|
||||||
await cloneContact.animate([
|
await cloneContact.animate([
|
||||||
{
|
{
|
||||||
@ -3179,6 +3175,7 @@
|
|||||||
opacity: 1
|
opacity: 1
|
||||||
},
|
},
|
||||||
], animOptions).finished
|
], animOptions).finished
|
||||||
|
getRef('chats_list').scroll({ top: 0, behavior: 'smooth' })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const chatType = floID ? 'chat' : groupID ? 'group' : 'pipeline'
|
const chatType = floID ? 'chat' : groupID ? 'group' : 'pipeline'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user