From 4c55004986f03926f7243f0681c544fbd45113ab Mon Sep 17 00:00:00 2001 From: slightlycyborg Date: Thu, 15 Aug 2019 09:16:18 +0000 Subject: [PATCH] fixed history_chart left axis cutoff problem --- .../assets/css/components/_dashboard-banner.scss | 2 +- apps/block_scout_web/assets/js/lib/history_chart.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/css/components/_dashboard-banner.scss b/apps/block_scout_web/assets/css/components/_dashboard-banner.scss index 6d9d798bb1..c1936579bc 100644 --- a/apps/block_scout_web/assets/css/components/_dashboard-banner.scss +++ b/apps/block_scout_web/assets/css/components/_dashboard-banner.scss @@ -69,7 +69,7 @@ $dashboard-banner-chart-axis-font-color: $dashboard-stats-item-value-color !defa display: grid; grid-template-columns: repeat(var(--numChartData), 0.9fr); padding-bottom: 12px; - padding-left:55px; + padding-left:20px; .dashboard-banner-chart-legend-item { padding-bottom: 3px; diff --git a/apps/block_scout_web/assets/js/lib/history_chart.js b/apps/block_scout_web/assets/js/lib/history_chart.js index 0026c2205d..ce86e22e2d 100644 --- a/apps/block_scout_web/assets/js/lib/history_chart.js +++ b/apps/block_scout_web/assets/js/lib/history_chart.js @@ -12,6 +12,11 @@ const config = { datasets: [] }, options: { + layout: { + padding: { + right: 20 + } + }, legend: { display: false },