Skip to content

Commit 764892b

Browse files
committed
center avatar and name in chat
1 parent cc4f61d commit 764892b

File tree

1 file changed

+5
-5
lines changed
  • frontend/src/components/app/matches

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<template>
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">
4-
<div class="w-1/2 flex items-center justify-between ml-auto">
5-
<div v-if="user" class="-ml-6 text-center flex">
6-
<div>
7-
<ChatUser v-bind:match="user"></ChatUser>
4+
<div class="flex items-center justify-center">
5+
<div v-if="user" class="text-center flex">
6+
<div class="flex-row">
7+
<ChatUser class="mx-auto" v-bind:match="user"></ChatUser>
88
<h1 class="text-gray-matcha opacity-75 text-sm">{{user.first_name}}</h1>
99
</div>
1010
<div v-if="newMessageCount" class="ml-4 flex items-center justify-center">
1111
<h1 class="text-purple-matcha text-sm font-bold">{{newMessageCount}}</h1>
1212
</div>
1313
</div>
14-
<div class="md:hidden cursor-pointer text-lg lg:text-2xl w-10 h-10 flex items-center justify-center"
14+
<div class="md:hidden absolute right-0 cursor-pointer text-lg lg:text-2xl w-10 h-10 flex items-center justify-center"
1515
v-on:click="closeChat()">
1616
<h1 class="noSelect capitalize opacity-50">←</h1>
1717
</div>

0 commit comments

Comments
 (0)