优化 SubscribeCard 组件的图片点击事件

This commit is contained in:
jxxghp
2025-04-08 14:52:07 +08:00
parent 6e1503334e
commit d52a814d77
2 changed files with 18 additions and 18 deletions

View File

@@ -341,7 +341,7 @@ function onSubscribeEditRemove() {
<div>
<VCardText class="flex items-center">
<div class="h-auto w-12 flex-shrink-0 overflow-hidden rounded-md shadow-lg" v-if="imageLoaded">
<VImg :src="posterUrl" aspect-ratio="2/3" cover @click.stop="viewMediaDetail">
<VImg :src="posterUrl" aspect-ratio="2/3" cover>
<template #placeholder>
<div class="w-full h-full">
<VSkeletonLoader class="object-cover aspect-w-2 aspect-h-3" />

View File

@@ -330,6 +330,23 @@ onMounted(() => {
grid-template-columns: repeat(2, 1fr);
}
.shortcut-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background-color: rgba(var(--v-theme-primary), 0.08);
block-size: 48px;
inline-size: 48px;
margin-inline-end: 16px;
transition: all 0.3s ease;
.v-icon {
color: rgba(var(--v-theme-primary), 1);
transition: transform 0.3s ease;
}
}
.shortcut-item {
position: relative;
z-index: 1;
@@ -377,23 +394,6 @@ onMounted(() => {
}
}
.shortcut-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background-color: rgba(var(--v-theme-primary), 0.08);
block-size: 48px;
inline-size: 48px;
margin-inline-end: 16px;
transition: all 0.3s ease;
.v-icon {
color: rgba(var(--v-theme-primary), 1);
transition: transform 0.3s ease;
}
}
.shortcut-text {
flex: 1;
}