mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 16:56:40 +08:00
fix cards
This commit is contained in:
@@ -12,3 +12,7 @@
|
||||
flex: 0 0 auto;
|
||||
max-width: 11rem;
|
||||
}
|
||||
|
||||
.grid-subscribe-card {
|
||||
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
||||
}
|
||||
|
||||
@@ -30,7 +30,9 @@ onMounted(fetchData);
|
||||
|
||||
<template>
|
||||
<div class="grid gap-3 grid-media-card">
|
||||
<MediaCard v-for="data in dataList" :key="data.tmdb_id" :media="data">
|
||||
<MediaCard v-for="data in dataList"
|
||||
:key="data.tmdb_id"
|
||||
:media="data">
|
||||
</MediaCard>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import api from "@/api";
|
||||
import { formatSeason } from "@core/utils/formatters";
|
||||
import type { Subscribe } from "@/api/types";
|
||||
import { formatSeason } from "@core/utils/formatters";
|
||||
|
||||
// 输入参数
|
||||
const props = defineProps({
|
||||
@@ -49,9 +49,11 @@ const getPercentage = (total: number, lack: number) => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VRow>
|
||||
<VCol v-for="data in filteredDataList" :key="data.id" cols="12" md="6" lg="4">
|
||||
<VCard :image="data.backdrop || data.poster" class="card-with-overlay">
|
||||
<div class="grid gap-3 grid-subscribe-card">
|
||||
<VCard v-for="data in filteredDataList"
|
||||
:key="data.id"
|
||||
:image="data.backdrop || data.poster"
|
||||
class="card-with-overlay">
|
||||
<VCardItem>
|
||||
<template #prepend>
|
||||
<VIcon
|
||||
@@ -104,8 +106,7 @@ const getPercentage = (total: number, lack: number) => {
|
||||
color="success"
|
||||
/>
|
||||
</VCard>
|
||||
</VCol>
|
||||
</VRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user