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