diff options
Diffstat (limited to 'components/UserAvatar.vue')
-rw-r--r-- | components/UserAvatar.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/UserAvatar.vue b/components/UserAvatar.vue index 53ad37d..b328d77 100644 --- a/components/UserAvatar.vue +++ b/components/UserAvatar.vue @@ -1,11 +1,11 @@ <template lang="pug"> div(v-if="data") img.h-8.w-8.rounded-full( - :class="{'h-48 w-48': big}" + :class="{'h-32 w-32 sm:h-48 sm:w-48': big}" v-if="data.avatar" :src="baseAPI+''+data.avatar" alt="Avatar" ) img.h-8.w-8.rounded-full( - :class="{'h-48 w-48': big}" + :class="{'h-32 w-32 sm:h-48 sm:w-48': big}" :src="'https://ui-avatars.com/api/?size='+(big?192:32)+'&name='+(data.name || data.username[0])" v-else ) |