From 6ad3ac254d7f88e2bf2b525de5a0869377736f64 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Mon, 29 Jul 2019 12:00:15 -0400 Subject: [PATCH] Float graph to the right of the weights table. --- .../farm_livestock_weight/farm_livestock_weight.css | 3 ++- .../farm_livestock_weight/farm_livestock_weight.report.inc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.css b/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.css index 9f196c4f..81bc80c8 100644 --- a/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.css +++ b/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.css @@ -1,6 +1,7 @@ @media (min-width: 992px) { .farm-report-graph { + float: right; + margin-left: 1em; width: 50%; - float: left; } } diff --git a/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.report.inc b/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.report.inc index 0b7f0633..ffb0cf46 100644 --- a/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.report.inc +++ b/modules/farm/farm_livestock/farm_livestock_weight/farm_livestock_weight.report.inc @@ -86,7 +86,7 @@ function farm_livestock_weight_report(FarmAsset $farm_asset) { ); // Add graphs to output. - $output .= '
' . implode('', $graph_markup) . '
'; + $output = '
' . implode('', $graph_markup) . '
' . $output; // Add JS and CSS to build the graphs. drupal_add_js($settings, 'setting');