优化多个组件的 VInfiniteScroll 属性,将 overflow-hidden 修改为 overflow-visible,以改善滚动体验。同时,更新 PluginCard.vue 的样式,添加 card-backdrop 和 card-backdrop-blur 类,提升视觉效果。

This commit is contained in:
jxxghp
2025-04-18 14:43:32 +08:00
parent 476d2f7e81
commit 06f4898ce8
11 changed files with 45 additions and 28 deletions

View File

@@ -340,12 +340,12 @@ watch(
}"
>
<div
class="relative flex flex-row items-start pa-3 justify-between grow"
:style="{ background: `${backgroundColor}` }"
class="relative flex flex-row items-start pa-3 justify-between grow card-backdrop"
:style="{ '--base-color': backgroundColor }"
>
<div
class="absolute inset-0 bg-cover bg-center"
:style="{ background: `${backgroundColor}`, filter: 'brightness(0.5)' }"
class="absolute inset-0 bg-cover bg-center card-backdrop-blur"
:style="{ '--base-color': backgroundColor }"
/>
<div class="relative flex-1 min-w-0">
<VCardTitle class="text-white text-lg px-2 text-shadow whitespace-nowrap overflow-hidden text-ellipsis">
@@ -466,6 +466,33 @@ watch(
inset: 0;
}
.card-backdrop {
background: rgba(var(--v-theme-primary), 0.2);
&::before {
position: absolute;
background: color-mix(in srgb, var(--base-color) 60%, transparent);
content: '';
inset: 0;
opacity: 0.8;
}
}
.card-backdrop-blur {
/* stylelint-disable-next-line property-no-vendor-prefix */
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
background: transparent;
&::before {
position: absolute;
background: color-mix(in srgb, var(--base-color) 30%, transparent);
content: '';
inset: 0;
opacity: 0.7;
}
}
.author-info {
display: flex;
align-items: center;