Team member preview refactoring

This commit is contained in:
Čarodej
2021-10-25 18:03:43 +02:00
parent 524791f251
commit d4990d8d5f
11 changed files with 239 additions and 117 deletions
@@ -1,45 +0,0 @@
<template>
<div class="typed-avatar" :style="{width: size + 'px', height: size + 'px', background: color ? color : '#f4f5f6', borderRadius: borderRadius + 'px'}">
<span class="letter" :style="{fontSize: fontSize + 'px'}">
{{ letter }}
</span>
</div>
</template>
<script>
export default {
name: "TypedAvatar",
props: [
'letter',
'color',
'size',
],
computed: {
borderRadius() {
return this.size >= 26 ? 10 : 6
},
fontSize() {
return this.size >= 26 ? 14 : 12
},
}
}
</script>
<style scoped lang="scss">
@import "resources/sass/vuefilemanager/_variables";
@import "resources/sass/vuefilemanager/_mixins";
.typed-avatar {
user-select: none;
display: flex;
background: #9ad2bf;
align-items: center;
justify-content: center;
border: 2px solid white;
.letter {
font-weight: 800;
text-transform: uppercase;
}
}
</style>