优化 PluginAppCard 和 PluginCard 组件的背景样式

This commit is contained in:
jxxghp
2025-05-10 22:10:02 +08:00
parent 141796ab24
commit 77afb4d736
2 changed files with 2 additions and 10 deletions

View File

@@ -168,12 +168,8 @@ const dropdownItems = ref([
>
<div
class="relative flex flex-row items-start pa-3 justify-between grow"
:style="{ background: `${backgroundColor}` }"
:style="`background: linear-gradient(${backgroundColor}40 0%, ${backgroundColor}60 100%)`"
>
<div
class="absolute inset-0 bg-cover bg-center"
:style="{ background: `${backgroundColor}`, filter: 'brightness(0.5)' }"
></div>
<div class="relative flex-1 min-w-0">
<VCardTitle
class="text-white text-lg px-2 text-shadow whitespace-nowrap overflow-hidden text-ellipsis ..."

View File

@@ -345,12 +345,8 @@ watch(
>
<div
class="relative flex flex-row items-start pa-3 justify-between grow"
:style="{ background: `${backgroundColor}` }"
:style="`background: linear-gradient(${backgroundColor}40 0%, ${backgroundColor}60 100%)`"
>
<div
class="absolute inset-0 bg-cover bg-center"
:style="{ background: `${backgroundColor}`, filter: 'brightness(0.5)' }"
/>
<div class="relative flex-1 min-w-0">
<VCardTitle class="text-white text-lg px-2 text-shadow whitespace-nowrap overflow-hidden text-ellipsis">
<VBadge v-if="props.plugin?.state" dot inline color="success" />