|
3 | 3 | v-model="show" |
4 | 4 | :options="{ |
5 | 5 | title: __('Attendance for Class - {0}').format(live_class?.title), |
6 | | - size: 'xl', |
| 6 | + size: '4xl', |
7 | 7 | }" |
8 | 8 | > |
9 | 9 | <template #body-content> |
10 | | - <div class="space-y-5"> |
| 10 | + <div |
| 11 | + class="grid grid-cols-2 gap-12 text-sm font-semibold text-ink-gray-5 pb-2" |
| 12 | + > |
| 13 | + <div> |
| 14 | + {{ __('Member') }} |
| 15 | + </div> |
| 16 | + <div class="grid grid-cols-3 gap-20"> |
| 17 | + <div> |
| 18 | + {{ __('Joined at') }} |
| 19 | + </div> |
| 20 | + <div class="text-center"> |
| 21 | + {{ __('Left at') }} |
| 22 | + </div> |
| 23 | + <div> |
| 24 | + {{ __('Attended for') }} |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + <div class="divide-y text-base"> |
11 | 29 | <div |
12 | 30 | v-for="participant in participants.data" |
13 | 31 | @click="redirectToProfile(participant.member_username)" |
14 | | - class="cursor-pointer text-base w-fit" |
| 32 | + class="grid grid-cols-2 items-center w-full text-base w-fit py-2" |
15 | 33 | > |
16 | | - <Tooltip placement="right"> |
17 | | - <div class="flex items-center space-x-2"> |
18 | | - <Avatar |
19 | | - :image="participant.member_image" |
20 | | - :label="participant.member_name" |
21 | | - size="xl" |
22 | | - /> |
23 | | - <div class="space-y-1"> |
24 | | - <div class="font-medium"> |
25 | | - {{ participant.member_name }} |
26 | | - </div> |
27 | | - <div> |
28 | | - {{ participant.member }} |
29 | | - </div> |
| 34 | + <div class="flex items-center space-x-2"> |
| 35 | + <Avatar |
| 36 | + :image="participant.member_image" |
| 37 | + :label="participant.member_name" |
| 38 | + size="xl" |
| 39 | + /> |
| 40 | + <div class="space-y-1"> |
| 41 | + <div class="font-medium"> |
| 42 | + {{ participant.member_name }} |
30 | 43 | </div> |
31 | | - </div> |
32 | | - <template #body> |
33 | | - <div |
34 | | - class="max-w-[30ch] rounded bg-surface-gray-7 px-2 py-1 text-p-xs text-ink-white leading-5 shadow-xl" |
35 | | - > |
36 | | - {{ dayjs(participant.joined_at).format('HH:mm a') }} - |
37 | | - {{ dayjs(participant.left_at).format('HH:mm a') }} |
38 | | - <br /> |
39 | | - {{ __('attended for') }} {{ participant.duration }} |
40 | | - {{ __('minutes') }} |
| 44 | + <div> |
| 45 | + {{ participant.member }} |
41 | 46 | </div> |
42 | | - </template> |
43 | | - </Tooltip> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + |
| 50 | + <div class="grid grid-cols-3 gap-20 text-right"> |
| 51 | + <div> |
| 52 | + {{ dayjs(participant.joined_at).format('HH:mm a') }} |
| 53 | + </div> |
| 54 | + <div> |
| 55 | + {{ dayjs(participant.left_at).format('HH:mm a') }} |
| 56 | + </div> |
| 57 | + <div>{{ participant.duration }} {{ __('minutes') }}</div> |
| 58 | + </div> |
44 | 59 | </div> |
45 | 60 | </div> |
46 | 61 | </template> |
|
0 commit comments