diff --git a/app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee b/app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee index c6e0f85f8..29c78869a 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee @@ -28,14 +28,18 @@ class Stats extends App.Controller @renderWidgetClockFace(data.StatsTicketWaitingTime.handling_time, data.StatsTicketWaitingTime.state, data.StatsTicketWaitingTime.percent) renderWidgetClockFace: (time, state, percent) => + dpr = window.devicePixelRatio || 1 canvas = @el.find 'canvas' ctx = canvas.get(0).getContext '2d' radius = 26 @el.find('.time.stat-widget .stat-amount').text time - canvas.attr 'width', 2 * radius - canvas.attr 'height', 2 * radius + canvas.attr 'width', 2 * radius * dpr + canvas.attr 'height', 2 * radius * dpr + + # scale canvas to dpr (2x on retina) + ctx.scale dpr, dpr handlingTimeColors = {} handlingTimeColors['supergood'] = '#38AE6A' # supergood diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 3a53a8561..1a24f3b3b 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -4424,6 +4424,8 @@ footer { position: absolute; top: 21px; left: 14px; + width: 52px; + height: 52px; } .stats-row {