Skip to content

Commit 5b96768

Browse files
committed
new message count UI
1 parent 0abac54 commit 5b96768

File tree

1 file changed

+9
-3
lines changed
  • frontend/src/components/app/matches

1 file changed

+9
-3
lines changed

frontend/src/components/app/matches/Chat.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
<!-- eslint-disable max-len -->
33
<div class="chat md:w-full md:max-w-2xl md:shadow-md md:rounded-md md:p-4 md:flex md:flex-col md:justify-start">
44
<div class="w-1/2 flex items-center justify-between ml-auto">
5-
<div v-if="user" class="-ml-6 text-center">
6-
<ChatUser v-bind:match="user"></ChatUser>
7-
<h1 class="text-gray-matcha opacity-75 text-sm">{{user.first_name}}</h1>
5+
<div v-if="user" class="-ml-6 text-center flex">
6+
<div>
7+
<ChatUser v-bind:match="user"></ChatUser>
8+
<h1 class="text-gray-matcha opacity-75 text-sm">{{user.first_name}}</h1>
9+
</div>
10+
<div v-if="newMessageCount" class="ml-4 flex items-center justify-center">
11+
<h1 class="text-purple-matcha text-sm font-bold">{{newMessageCount}}</h1>
12+
</div>
813
</div>
914
<div class="md:hidden cursor-pointer text-lg lg:text-2xl w-10 h-10 flex items-center justify-center"
1015
v-on:click="closeChat()">
@@ -58,6 +63,7 @@ export default {
5863
user: null,
5964
message: '',
6065
loggedInUserId: null,
66+
newMessageCount: null,
6167
}),
6268
methods: {
6369
closeChat() {

0 commit comments

Comments
 (0)