chore: Replace Thumbnail with Avatar (#12119)

This commit is contained in:
Sivin Varghese
2025-08-11 15:47:17 +05:30
committed by GitHub
parent fcc6e2b8b2
commit d908c880d2
38 changed files with 297 additions and 657 deletions
@@ -1,38 +1,33 @@
<script>
import Thumbnail from '../../../components/widgets/Thumbnail.vue';
<script setup>
import Avatar from 'next/avatar/Avatar.vue';
export default {
components: {
Thumbnail,
defineProps({
name: {
type: String,
default: '',
},
props: {
name: {
type: String,
default: '',
},
thumbnail: {
type: String,
default: '',
},
email: {
type: String,
default: '',
},
phoneNumber: {
type: String,
default: '',
},
identifier: {
type: [String, Number],
required: true,
},
thumbnail: {
type: String,
default: '',
},
};
email: {
type: String,
default: '',
},
phoneNumber: {
type: String,
default: '',
},
identifier: {
type: [String, Number],
required: true,
},
});
</script>
<template>
<div class="option-item--user">
<Thumbnail :src="thumbnail" size="28px" :username="name" />
<Avatar :src="thumbnail" :size="28" :name="name" rounded-full />
<div class="option__user-data">
<h5 class="option__title">
{{ name }}
@@ -2,7 +2,7 @@
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import ResizableTextArea from 'shared/components/ResizableTextArea.vue';
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
import Avatar from 'next/avatar/Avatar.vue';
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
const props = defineProps({
@@ -40,7 +40,7 @@ const getStatusText = computed(() => {
{{ config.replyTime }}
</div>
</div>
<Thumbnail username="C" size="34px" />
<Avatar name="C" :size="34" rounded-full />
</div>
<button
v-if="config.isDefaultScreen"