From 0b14e6b556118508bd9ac183d5e1d0baaa4df4fa Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 17 May 2018 10:25:10 +1000 Subject: [PATCH] Resizing dashboard should not break graphs --- .../javascripts/admin/components/dashboard-mini-chart.js.es6 | 3 +-- app/assets/stylesheets/common/admin/dashboard_next.scss | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6 b/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6 index f95738df61e..0ac44e2bbbd 100644 --- a/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6 +++ b/app/assets/javascripts/admin/components/dashboard-mini-chart.js.es6 @@ -37,13 +37,11 @@ export default Ember.Component.extend(AsyncReport, { didRender() { this._super(); - registerTooltip($(this.element).find("[data-tooltip]")); }, willDestroyElement() { this._super(); - unregisterTooltip($(this.element).find("[data-tooltip]")); }, @@ -147,6 +145,7 @@ export default Ember.Component.extend(AsyncReport, { display: false }, responsive: true, + maintainAspectRatio: false, layout: { padding: { left: 0, diff --git a/app/assets/stylesheets/common/admin/dashboard_next.scss b/app/assets/stylesheets/common/admin/dashboard_next.scss index 0c3186087a2..71cb1ec3055 100644 --- a/app/assets/stylesheets/common/admin/dashboard_next.scss +++ b/app/assets/stylesheets/common/admin/dashboard_next.scss @@ -216,6 +216,7 @@ flex-direction: column; justify-content: space-between; flex: 1; + width: 100%; } @include small-width {