mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			36 lines
		
	
	
		
			696 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			696 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<script setup>
 | 
						|
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
 | 
						|
 | 
						|
defineProps({
 | 
						|
  user: {
 | 
						|
    type: Object,
 | 
						|
    default: () => {},
 | 
						|
  },
 | 
						|
  size: {
 | 
						|
    type: String,
 | 
						|
    default: '20px',
 | 
						|
  },
 | 
						|
  textClass: {
 | 
						|
    type: String,
 | 
						|
    default: 'text-xs text-slate-600',
 | 
						|
  },
 | 
						|
});
 | 
						|
</script>
 | 
						|
 | 
						|
<template>
 | 
						|
  <div class="flex items-center gap-1.5 text-left">
 | 
						|
    <Thumbnail
 | 
						|
      :src="user.thumbnail"
 | 
						|
      :size="size"
 | 
						|
      :username="user.name"
 | 
						|
      :status="user.availability_status"
 | 
						|
    />
 | 
						|
    <h6
 | 
						|
      class="my-0 dark:text-slate-100 overflow-hidden whitespace-nowrap text-ellipsis text-capitalize"
 | 
						|
      :class="textClass"
 | 
						|
    >
 | 
						|
      {{ user.name }}
 | 
						|
    </h6>
 | 
						|
  </div>
 | 
						|
</template>
 |