feat: 更新通知组件样式,调整图标背景色和文本颜色
This commit is contained in:
@@ -23,8 +23,8 @@ function getConfigByType(type: string) {
|
||||
<div v-if="data" class="notification-detail">
|
||||
<!-- 图标和标题 -->
|
||||
<div class="flex items-start gap-4">
|
||||
<div class="bg-success p-3 rounded-full shrink-0">
|
||||
<Icon :icon="getConfigByType(data.notification.type).icon" class="text-xl text-(--ion-background-color)" />
|
||||
<div slot="start" class="bg-[#93d25d] p-3 rounded-full shrink-0">
|
||||
<Icon :icon="getConfigByType(data.notification.type).icon" class="text-xl text-[#3b7901]" />
|
||||
</div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="text-xl font-semibold wrap-break-word">
|
||||
|
||||
@@ -103,8 +103,8 @@ onBeforeMount(() => {
|
||||
class="py-3"
|
||||
@click="handleItemClick(item)"
|
||||
>
|
||||
<div slot="start" class="bg-success p-3 rounded-full">
|
||||
<Icon :icon="getConfigByType(item.notification.type).icon" class="text-xl text-(--ion-background-color)" />
|
||||
<div slot="start" class="bg-[#93d25d] p-3 rounded-full">
|
||||
<Icon :icon="getConfigByType(item.notification.type).icon" class="text-xl text-[#3b7901]" />
|
||||
</div>
|
||||
<div class="pl-3 w-full">
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
|
||||
Reference in New Issue
Block a user