chore(Avatar): prevent flick by passing size to img

This commit is contained in:
Benjamin Canac
2021-11-19 12:09:38 +01:00
parent d9c27b0226
commit 025c55d5e4

View File

@@ -1,6 +1,6 @@
<template>
<span class="relative inline-flex items-center justify-center overflow-hidden" :class="avatarClass" @click="goto">
<img v-if="url" :src="url" :alt="alt" :class="roundedClass">
<img v-if="url" :src="url" :alt="alt" :class="[sizeClass, roundedClass]">
<span v-else-if="gradientPlaceholder" class="w-full h-full" v-html="gradientPlaceholder" />
<span
v-else-if="placeholder"