Files
chatwoot/app/javascript/dashboard/components/widgets/UserAvatarWithName.vue
Sivin Varghese 7d4e6d0257 chore: Refactor tables in all screen for RTL (#6525)
* chore: Refactor tables in all screen for RTL

* Notification page footer

* Apply suggestions from code review

* chore: Minor ixes

* chore: Adds rtl comment

* chore: Code clean up for contact table

---------

Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
2023-02-27 11:36:28 +05:30

45 lines
756 B
Vue

<template>
<div class="row--user-block">
<thumbnail
:src="user.thumbnail"
:size="size"
:username="user.name"
:status="user.availability_status"
/>
<h6 class="text-block-title text-truncate text-capitalize">
{{ user.name }}
</h6>
</div>
</template>
<script>
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
export default {
components: {
Thumbnail,
},
props: {
user: {
type: Object,
default: () => {},
},
size: {
type: String,
default: '20px',
},
},
};
</script>
<style scoped lang="scss">
.row--user-block {
align-items: center;
display: flex;
text-align: left;
.user-name {
margin: 0 var(--space-small);
}
}
</style>