Render telegram avatars in user cards
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
type ManagerUsersQuery,
|
||||
type RegistrationRequestsQuery,
|
||||
} from '~/composables/graphql/generated';
|
||||
import { messengerConnectionAvatarSrc } from '~/composables/useMessengerConnectionPresentation';
|
||||
|
||||
definePageMeta({
|
||||
middleware: ['manager-only'],
|
||||
@@ -150,7 +151,16 @@ function userInitials(fullName: string) {
|
||||
class="surface-card flex min-h-[280px] flex-col rounded-[32px] p-6"
|
||||
>
|
||||
<div class="flex justify-center">
|
||||
<div class="flex h-24 w-24 items-center justify-center rounded-[32px] bg-[linear-gradient(135deg,#dff7e9_0%,#c2ead3_100%)] text-3xl font-black text-[#123824] shadow-[inset_0_1px_0_rgba(255,255,255,0.65)]">
|
||||
<img
|
||||
v-if="messengerConnectionAvatarSrc(user.telegramConnection)"
|
||||
:src="messengerConnectionAvatarSrc(user.telegramConnection)"
|
||||
:alt="user.fullName"
|
||||
class="h-24 w-24 rounded-[32px] object-cover shadow-[0_12px_30px_rgba(18,56,36,0.14)]"
|
||||
>
|
||||
<div
|
||||
v-else
|
||||
class="flex h-24 w-24 items-center justify-center rounded-[32px] bg-[linear-gradient(135deg,#dff7e9_0%,#c2ead3_100%)] text-3xl font-black text-[#123824] shadow-[inset_0_1px_0_rgba(255,255,255,0.65)]"
|
||||
>
|
||||
{{ userInitials(user.fullName) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user