mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	* Add inter font, remove modal header bg * Remove unnecessary font files * Fix codeclimate issues, remove letter-spacing attribute
		
			
				
	
	
		
			46 lines
		
	
	
		
			772 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			772 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <header class="header-collapsed" :style="{ background: widgetColor }">
 | 
						|
    <div>
 | 
						|
      <h2 class="title">
 | 
						|
        {{ title }}
 | 
						|
      </h2>
 | 
						|
    </div>
 | 
						|
  </header>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { mapGetters } from 'vuex';
 | 
						|
 | 
						|
export default {
 | 
						|
  name: 'ChatHeader',
 | 
						|
  computed: {
 | 
						|
    ...mapGetters({
 | 
						|
      widgetColor: 'appConfig/getWidgetColor',
 | 
						|
    }),
 | 
						|
  },
 | 
						|
  props: {
 | 
						|
    title: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
 | 
						|
<style scoped lang="scss">
 | 
						|
@import '~widget/assets/scss/variables.scss';
 | 
						|
 | 
						|
.header-collapsed {
 | 
						|
  background: $color-woot;
 | 
						|
  padding: $space-two $space-medium;
 | 
						|
  width: 100%;
 | 
						|
  box-sizing: border-box;
 | 
						|
  color: $color-white;
 | 
						|
 | 
						|
  .title {
 | 
						|
    font-size: $font-size-big;
 | 
						|
    font-weight: $font-weight-medium;
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |