replace el-popover el-card

This commit is contained in:
pa
2026-01-13 14:28:25 +09:00
committed by Natsumi
parent 911969289e
commit 77a838e22d
19 changed files with 254 additions and 76 deletions
@@ -1,10 +1,5 @@
<template>
<el-card
class="friend-card"
shadow="never"
:body-style="{ padding: `${16 * cardScale * cardSpacing}px` }"
:style="cardStyle"
@click="showUserDialog(friend.id)">
<Card class="friend-card p-0 gap-0" :style="cardStyle" @click="showUserDialog(friend.id)">
<div class="friend-card__header">
<div class="friend-card__avatar-wrapper">
<el-avatar :size="avatarSize" :src="userImage(props.friend.ref, true)" class="friend-card__avatar">
@@ -27,11 +22,12 @@
link />
</div>
</div>
</el-card>
</Card>
</template>
<script setup>
import { computed } from 'vue';
import { Card } from '@/components/ui/card';
import { userImage, userStatusClass } from '../../../shared/utils';
import { useUserStore } from '../../../stores';
@@ -62,7 +58,8 @@
const cardStyle = computed(() => ({
'--card-scale': props.cardScale,
'--card-spacing': props.cardSpacing,
cursor: 'pointer'
cursor: 'pointer',
padding: `${16 * props.cardScale * props.cardSpacing}px`
}));
const avatarFallback = computed(() => props.friend.name.charAt(0) ?? '?');