From ea2e05307830c58575920fb5e517cb6ab053e998 Mon Sep 17 00:00:00 2001 From: martintomas Date: Wed, 22 Nov 2023 14:07:42 +0100 Subject: [PATCH] feat: Wrapping ASCOR benchmarks chart at metric styles --- app/assets/stylesheets/tpi/_ascor-benchmarks.scss | 1 - app/views/tpi/ascor/_assessment.html.erb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/tpi/_ascor-benchmarks.scss b/app/assets/stylesheets/tpi/_ascor-benchmarks.scss index e467f0b0e..a0befcb66 100644 --- a/app/assets/stylesheets/tpi/_ascor-benchmarks.scss +++ b/app/assets/stylesheets/tpi/_ascor-benchmarks.scss @@ -4,7 +4,6 @@ .ascor-benchmarks { height: 500px; margin-top: 24px; - margin-inline: 80px; .highcharts-graph { stroke-width: 4px !important; } diff --git a/app/views/tpi/ascor/_assessment.html.erb b/app/views/tpi/ascor/_assessment.html.erb index ce39734f6..a78353827 100644 --- a/app/views/tpi/ascor/_assessment.html.erb +++ b/app/views/tpi/ascor/_assessment.html.erb @@ -29,7 +29,9 @@ <% if ascor_sub_indicators_for(area, indicators).present? %> <%= render 'tpi/ascor/assessment_indicators', area: area, indicators: ascor_sub_indicators_for(area, indicators), metrics: metrics %> <% if area.code == 'EP.2' %> - <%= render 'tpi/ascor/benchmarks_chart' %> +
+ <%= render 'tpi/ascor/benchmarks_chart' %> +
<% end %> <% else %> <%= render 'tpi/ascor/assessment_metrics', metrics: ascor_sub_indicators_for(area, metrics) %>