MDL-64169 course: fix padding when display on one section per page
authorMichelle Melton <meltonml@appstate.edu>
Tue, 8 Oct 2019 17:55:54 +0000 (13:55 -0400)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 29 Jan 2020 21:34:35 +0000 (22:34 +0100)
(amended to keep the $o.= consistent with surrounding code)

course/format/renderer.php

index a33ecad..8adef40 100644 (file)
@@ -486,7 +486,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
 
         // Output section activities summary:
         $o = '';
-        $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities mdl-right'));
+        $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities pr-2 mdl-right'));
         foreach ($sectionmods as $mod) {
             $o.= html_writer::start_tag('span', array('class' => 'activity-count'));
             $o.= $mod['name'].': '.$mod['count'];
@@ -500,7 +500,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
             $a->complete = $complete;
             $a->total = $total;
 
-            $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities mdl-right'));
+            $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities pr-2 mdl-right'));
             $o.= html_writer::tag('span', get_string('progresstotal', 'completion', $a), array('class' => 'activity-count'));
             $o.= html_writer::end_tag('div');
         }