summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-18 19:16:12 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-18 19:16:12 +0200
commit0cd059d6318276376236be13438133a285478f3c (patch)
treefa7f175684bd276615d9c1d8c900ac16d4862f0e
parent9382162c78a2991804885c8a7e36b599f45d0038 (diff)
Fix avatar without image
-rw-r--r--components/UserAvatar.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/UserAvatar.vue b/components/UserAvatar.vue
index 4d45ee0..103455c 100644
--- a/components/UserAvatar.vue
+++ b/components/UserAvatar.vue
@@ -1,7 +1,7 @@
<template lang="pug">
div(v-if="data")
img.h-8.w-8.rounded-full(v-if="data.avatar" :src="baseAPI+''+data.avatar" alt="Avatar")
- span.h-8.w-8.rounded-full.bg-white.pt-1(v-else) {{ data.username[0] }}
+ span.h-8.w-8.rounded-full.bg-gray-100.text-center.pt-1.block(v-else) {{ data.username[0] }}
</template>
<script>