Skip to content

Commit a13ba9d

Browse files
authored
Merge branch 'UniqueStudio:main' into fix/globalcss
2 parents 9de70b3 + 9b9919c commit a13ba9d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/views/overview/applyInfo/components/schedules.vue

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@
1414
<li
1515
v-for="date in recents"
1616
:key="date.toDateString()"
17-
class="block list-none ml-5"
17+
class="flex list-none ml-5 flex-col"
1818
>
1919
<div
2020
v-if="
2121
filteredSchedules.some(
2222
(schedule) => schedule.date.getTime() === date.getTime(),
2323
)
2424
"
25+
class="flex flex-col"
2526
>
2627
<div class="text-[--color-text-1] mt-5 ml-5 sm:text-lg">
2728
{{ date.getMonth() + 1 }}.{{ date.getDate() }}
2829
</div>
2930
<li
3031
v-for="schedule in filteredDateSchedules(date, true)"
3132
:key="schedule.name"
32-
class="block list-none p-3"
33+
class="flex list-none p-3 flex-wrap items-center"
3334
>
34-
<div class="flex justify-between">
35+
<div class="flex justify-between items-center flex-row grow">
3536
<div class="flex items-center">
3637
<div
3738
class="w-8 h-8 sm:w-10 sm:h-10 rounded-full border-2 mr-3 flex items-center justify-center"
@@ -42,7 +43,7 @@
4243
schedule.name
4344
}}</span>
4445
</div>
45-
<span class="text-blue-600 mr-8 mt-4">{{ schedule.time }}</span>
46+
<span class="text-blue-600">{{ schedule.time }}</span>
4647
</div>
4748
</li>
4849
</div>
@@ -61,7 +62,7 @@
6162
v-model:visible="visible"
6263
:closable="false"
6364
:hide-cancel="true"
64-
:modal-style="{ maxHeight: '700px', overflowY: 'scroll' }"
65+
:modal-style="{ maxHeight: 'min(700px,90vh)', overflowY: 'scroll' }"
6566
>
6667
<div class="text-[--color-text-1] text-xl font-bold ml-5">{{
6768
$t('common.applyInfo.recentSchedules')
@@ -70,30 +71,33 @@
7071
<li
7172
v-for="date in recents"
7273
:key="date.toDateString()"
73-
class="block list-none ml-5 mb-6"
74+
class="flex flex-col list-none ml-5 mb-6"
7475
>
7576
<div
7677
v-if="
7778
schedules.some(
7879
(schedule) => schedule.date.getTime() === date.getTime(),
7980
)
8081
"
82+
class="flex flex-col"
8183
>
8284
<div class="text-[--color-text-1] mt-5 ml-5 text-lg">
8385
{{ date.getMonth() + 1 }}.{{ date.getDate() }}
8486
</div>
8587
<li
8688
v-for="schedule in filteredDateSchedules(date, false)"
8789
:key="schedule.name"
88-
class="block list-none p-7"
90+
class="flex flex-row list-none p-3 justify-between flex-wrap"
8991
>
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>
9299
</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">{{
97101
schedule.time
98102
}}</span>
99103
</li>

0 commit comments

Comments
 (0)