|
14 | 14 | <li |
15 | 15 | v-for="date in recents" |
16 | 16 | :key="date.toDateString()" |
17 | | - class="block list-none ml-5" |
| 17 | + class="flex list-none ml-5 flex-col" |
18 | 18 | > |
19 | 19 | <div |
20 | 20 | v-if=" |
21 | 21 | filteredSchedules.some( |
22 | 22 | (schedule) => schedule.date.getTime() === date.getTime(), |
23 | 23 | ) |
24 | 24 | " |
| 25 | + class="flex flex-col" |
25 | 26 | > |
26 | 27 | <div class="text-[--color-text-1] mt-5 ml-5 sm:text-lg"> |
27 | 28 | {{ date.getMonth() + 1 }}.{{ date.getDate() }} |
28 | 29 | </div> |
29 | 30 | <li |
30 | 31 | v-for="schedule in filteredDateSchedules(date, true)" |
31 | 32 | :key="schedule.name" |
32 | | - class="block list-none p-3" |
| 33 | + class="flex list-none p-3 flex-wrap items-center" |
33 | 34 | > |
34 | | - <div class="flex justify-between"> |
| 35 | + <div class="flex justify-between items-center flex-row grow"> |
35 | 36 | <div class="flex items-center"> |
36 | 37 | <div |
37 | 38 | class="w-8 h-8 sm:w-10 sm:h-10 rounded-full border-2 mr-3 flex items-center justify-center" |
|
42 | 43 | schedule.name |
43 | 44 | }}</span> |
44 | 45 | </div> |
45 | | - <span class="text-blue-600 mr-8 mt-4">{{ schedule.time }}</span> |
| 46 | + <span class="text-blue-600">{{ schedule.time }}</span> |
46 | 47 | </div> |
47 | 48 | </li> |
48 | 49 | </div> |
|
61 | 62 | v-model:visible="visible" |
62 | 63 | :closable="false" |
63 | 64 | :hide-cancel="true" |
64 | | - :modal-style="{ maxHeight: '700px', overflowY: 'scroll' }" |
| 65 | + :modal-style="{ maxHeight: 'min(700px,90vh)', overflowY: 'scroll' }" |
65 | 66 | > |
66 | 67 | <div class="text-[--color-text-1] text-xl font-bold ml-5">{{ |
67 | 68 | $t('common.applyInfo.recentSchedules') |
|
70 | 71 | <li |
71 | 72 | v-for="date in recents" |
72 | 73 | :key="date.toDateString()" |
73 | | - class="block list-none ml-5 mb-6" |
| 74 | + class="flex flex-col list-none ml-5 mb-6" |
74 | 75 | > |
75 | 76 | <div |
76 | 77 | v-if=" |
77 | 78 | schedules.some( |
78 | 79 | (schedule) => schedule.date.getTime() === date.getTime(), |
79 | 80 | ) |
80 | 81 | " |
| 82 | + class="flex flex-col" |
81 | 83 | > |
82 | 84 | <div class="text-[--color-text-1] mt-5 ml-5 text-lg"> |
83 | 85 | {{ date.getMonth() + 1 }}.{{ date.getDate() }} |
84 | 86 | </div> |
85 | 87 | <li |
86 | 88 | v-for="schedule in filteredDateSchedules(date, false)" |
87 | 89 | :key="schedule.name" |
88 | | - class="block list-none p-7" |
| 90 | + class="flex flex-row list-none p-3 justify-between flex-wrap" |
89 | 91 | > |
90 | | - <div class="w-10 h-10 rounded-full border-2 float-left mr-3 p-2"> |
91 | | - <icon-calendar class="text-xl" /> |
| 92 | + <div class="flex flex-row grow items-center"> |
| 93 | + <div class="w-10 h-10 rounded-full border-2 mr-3 p-2"> |
| 94 | + <icon-calendar class="text-xl" /> |
| 95 | + </div> |
| 96 | + <span class="text-lg mt-1 text-[--color-text-1]">{{ |
| 97 | + schedule.name |
| 98 | + }}</span> |
92 | 99 | </div> |
93 | | - <span class="text-lg float-left mt-1 text-[--color-text-1]">{{ |
94 | | - schedule.name |
95 | | - }}</span> |
96 | | - <span class="text-blue-600 float-right mt-3">{{ |
| 100 | + <span class="text-blue-600 mt-3 grow text-right">{{ |
97 | 101 | schedule.time |
98 | 102 | }}</span> |
99 | 103 | </li> |
|
0 commit comments