chore: code format
This commit is contained in:
parent
9bf416072f
commit
82a04cc8b9
3 changed files with 6 additions and 7 deletions
|
|
@ -22,7 +22,6 @@
|
|||
<q-chat-message
|
||||
v-for="(dm, index) in messages"
|
||||
:key="index"
|
||||
|
||||
:name="dm.incoming ? 'customer': 'me'"
|
||||
:text="[dm.message]"
|
||||
:sent="!dm.incoming"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ async function directMessages(path) {
|
|||
this.messages.map(m => m.message)
|
||||
)
|
||||
this.focusOnChatBox(this.messages.length - 1)
|
||||
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
}
|
||||
|
|
@ -57,7 +56,9 @@ async function directMessages(path) {
|
|||
},
|
||||
focusOnChatBox: function (index) {
|
||||
setTimeout(() => {
|
||||
const lastChatBox = document.getElementsByClassName(`chat-mesage-index-${index}`);
|
||||
const lastChatBox = document.getElementsByClassName(
|
||||
`chat-mesage-index-${index}`
|
||||
)
|
||||
if (lastChatBox && lastChatBox[0]) {
|
||||
lastChatBox[0].scrollIntoView()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,6 @@
|
|||
margin-left: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<!-- todo: serve locally -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue