mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	Fix activity heat map padding & locale (#30823)
Fix #30808 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
<script>
 | 
			
		||||
import {CalendarHeatmap} from 'vue3-calendar-heatmap';
 | 
			
		||||
// TODO: Switch to upstream after https://github.com/razorness/vue3-calendar-heatmap/pull/34 is merged
 | 
			
		||||
import {CalendarHeatmap} from '@silverwind/vue3-calendar-heatmap';
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  components: {CalendarHeatmap},
 | 
			
		||||
@@ -55,15 +56,16 @@ export default {
 | 
			
		||||
</script>
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="total-contributions">
 | 
			
		||||
    {{ locale.contributions_in_the_last_12_months }}
 | 
			
		||||
    {{ locale.textTotalContributions }}
 | 
			
		||||
  </div>
 | 
			
		||||
  <calendar-heatmap
 | 
			
		||||
    :locale="locale"
 | 
			
		||||
    :no-data-text="locale.no_contributions"
 | 
			
		||||
    :tooltip-unit="locale.contributions"
 | 
			
		||||
    :locale="locale.heatMapLocale"
 | 
			
		||||
    :no-data-text="locale.noDataText"
 | 
			
		||||
    :tooltip-unit="locale.tooltipUnit"
 | 
			
		||||
    :end-date="endDate"
 | 
			
		||||
    :values="values"
 | 
			
		||||
    :range-color="colorRange"
 | 
			
		||||
    @day-click="handleDayClick($event)"
 | 
			
		||||
    :tippy-props="{theme: 'tooltip'}"
 | 
			
		||||
  />
 | 
			
		||||
</template>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user