fix: direct message focus

This commit is contained in:
Vlad Stan 2023-03-08 14:28:43 +02:00
parent bfea056747
commit 9bf416072f
3 changed files with 15 additions and 1 deletions

View file

@ -18,14 +18,16 @@
<q-card-section>
<div class="chat-container" ref="chatCard">
<div class="chat-box">
<div class="chat-messages" style="height: 45vh">
<div class="chat-messages" style="height: 45vh">
<q-chat-message
v-for="(dm, index) in messages"
:key="index"
:name="dm.incoming ? 'customer': 'me'"
:text="[dm.message]"
:sent="!dm.incoming"
:bg-color="dm.incoming ? 'white' : 'light-green-2'"
:class="'chat-mesage-index-'+index"
/>
</div>
</div>