mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix calendar card
This commit is contained in:
@@ -65,7 +65,8 @@ const getSubscribes = async () => {
|
|||||||
);
|
);
|
||||||
return episodes.map((episode) => {
|
return episodes.map((episode) => {
|
||||||
return {
|
return {
|
||||||
title: `${subscribe.name} 第 ${episode.episode_number} 集`,
|
title: subscribe.name,
|
||||||
|
subtitle: `第 ${episode.episode_number} 集`,
|
||||||
start: parseDate(episode.air_date || ""),
|
start: parseDate(episode.air_date || ""),
|
||||||
allDay: false,
|
allDay: false,
|
||||||
posterPath: subscribe.poster,
|
posterPath: subscribe.poster,
|
||||||
@@ -102,14 +103,27 @@ onMounted(() => {
|
|||||||
<FullCalendar :options="calendarOptions">
|
<FullCalendar :options="calendarOptions">
|
||||||
<template #eventContent="arg">
|
<template #eventContent="arg">
|
||||||
<div class="hidden md:block overflow-hidden">
|
<div class="hidden md:block overflow-hidden">
|
||||||
<VTooltip :text="arg.event.title">
|
<VCard>
|
||||||
<template #activator="{ props }">
|
<div class="d-flex justify-space-between flex-nowrap flex-row">
|
||||||
<VChip v-bind="props" label>
|
<div class="ma-auto">
|
||||||
<v-icon start :icon="getIcon(arg.event.extendedProps.mediaType)"></v-icon>
|
<VImg
|
||||||
{{ arg.event.title }}
|
height="80"
|
||||||
</VChip>
|
width="54"
|
||||||
</template>
|
:src="arg.event.extendedProps.posterPath"
|
||||||
</VTooltip>
|
aspect-ratio="2/3"
|
||||||
|
class="object-cover rounded shadow ring-gray-500"
|
||||||
|
cover
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<VDivider :vertical="$vuetify.display.mdAndUp" />
|
||||||
|
<div>
|
||||||
|
<VCardSubtitle class="pa-2 font-bold">{{ arg.event.title }}</VCardSubtitle>
|
||||||
|
<VCardText class="pa-0 px-2">
|
||||||
|
{{ arg.event.extendedProps.subtitle }}
|
||||||
|
</VCardText>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</VCard>
|
||||||
</div>
|
</div>
|
||||||
<div class="md:hidden">
|
<div class="md:hidden">
|
||||||
<VTooltip :text="arg.event.title">
|
<VTooltip :text="arg.event.title">
|
||||||
@@ -121,7 +135,7 @@ onMounted(() => {
|
|||||||
aspect-ratio="2/3"
|
aspect-ratio="2/3"
|
||||||
class="object-cover rounded shadow ring-gray-500"
|
class="object-cover rounded shadow ring-gray-500"
|
||||||
cover
|
cover
|
||||||
></VImg>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</VTooltip>
|
</VTooltip>
|
||||||
</div>
|
</div>
|
||||||
@@ -431,10 +445,9 @@ onMounted(() => {
|
|||||||
|
|
||||||
@media (max-width: 776px) {
|
@media (max-width: 776px) {
|
||||||
.fc-daygrid-event-harness {
|
.fc-daygrid-event-harness {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user