feat: init boring avatars (#3615)

This commit is contained in:
Liyas Thomas
2023-12-04 13:20:26 +05:30
committed by GitHub
parent b43531f200
commit 259cd48dbb
7 changed files with 41 additions and 116 deletions

View File

@@ -134,15 +134,10 @@
:on-shown="() => tippyActions.focus()"
>
<HoppSmartPicture
v-if="currentUser.photoURL"
v-tippy="{
theme: 'tooltip',
}"
:url="currentUser.photoURL"
:alt="
currentUser.displayName ||
t('profile.default_hopp_displayname')
"
:name="currentUser.uid"
:title="
currentUser.displayName ||
currentUser.email ||
@@ -153,20 +148,6 @@
network.isOnline ? 'bg-green-500' : 'bg-red-500'
"
/>
<HoppSmartPicture
v-else
v-tippy="{ theme: 'tooltip' }"
:title="
currentUser.displayName ||
currentUser.email ||
t('profile.default_hopp_displayname')
"
:initial="currentUser.displayName || currentUser.email"
indicator
:indicator-styles="
network.isOnline ? 'bg-green-500' : 'bg-red-500'
"
/>
<template #content="{ hide }">
<div
ref="tippyActions"