From 27c4ec6bc75d97e3ce621528155f32ae0114a82d Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 20 Aug 2025 00:00:11 +0100 Subject: [PATCH] MDL-86375 report_outline: consistent icon sizing/alignment. Tighten selector for actual table so we don't break others on the page (e.g. debug footer cache table). --- public/report/classes/output/coursestructure.php | 4 +--- public/report/outline/templates/activity.mustache | 2 +- public/theme/boost/scss/moodle/reports.scss | 2 +- public/theme/boost/style/moodle.css | 10 +++++----- public/theme/classic/style/moodle.css | 10 +++++----- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/public/report/classes/output/coursestructure.php b/public/report/classes/output/coursestructure.php index cc010392436..959cbf45d1b 100644 --- a/public/report/classes/output/coursestructure.php +++ b/public/report/classes/output/coursestructure.php @@ -276,8 +276,6 @@ class coursestructure implements \renderable, \templatable { return []; } - $modulename = get_string('modulename', $cm->modname); - $dataactivity = [ 'isactivity' => true, 'indelegated' => $indelegated, @@ -286,7 +284,7 @@ class coursestructure implements \renderable, \templatable { ]; $activityicon = activity_icon::from_cm_info($cm) - ->set_icon_size(iconsize::SIZE4); + ->set_extra_classes('smaller'); $dataactivity['activitycolumn'] = [ 'activityicon' => $output->render($activityicon), diff --git a/public/report/outline/templates/activity.mustache b/public/report/outline/templates/activity.mustache index c5059ce268e..c9fd0333d36 100644 --- a/public/report/outline/templates/activity.mustache +++ b/public/report/outline/templates/activity.mustache @@ -45,7 +45,7 @@ -
+
{{{ activityicon }}} {{#link}}{{/link}}{{{ text }}}{{#link}}{{/link}}
diff --git a/public/theme/boost/scss/moodle/reports.scss b/public/theme/boost/scss/moodle/reports.scss index a97d8741738..685369941cf 100644 --- a/public/theme/boost/scss/moodle/reports.scss +++ b/public/theme/boost/scss/moodle/reports.scss @@ -17,7 +17,7 @@ #page-report-outline-index .font-lg { font-size: $font-size-base * 1.1; } -#page-report-outline-index .table tbody { +#page-report-outline-index #outlinereport tbody { tr { background-color: $white; } diff --git a/public/theme/boost/style/moodle.css b/public/theme/boost/style/moodle.css index bcb27f50d03..5b05cb17c90 100644 --- a/public/theme/boost/style/moodle.css +++ b/public/theme/boost/style/moodle.css @@ -36959,19 +36959,19 @@ img.userpicture { font-size: 1.03125rem; } -#page-report-outline-index .table tbody tr { +#page-report-outline-index #outlinereport tbody tr { background-color: #fff; } -#page-report-outline-index .table tbody tr.section { +#page-report-outline-index #outlinereport tbody tr.section { padding-left: 2rem; } -#page-report-outline-index .table tbody tr.section h3, #page-report-outline-index .table tbody tr.section .h3 { +#page-report-outline-index #outlinereport tbody tr.section h3, #page-report-outline-index #outlinereport tbody tr.section .h3 { font-size: 1.171875rem; } -#page-report-outline-index .table tbody tr.section h4, #page-report-outline-index .table tbody tr.section .h4 { +#page-report-outline-index #outlinereport tbody tr.section h4, #page-report-outline-index #outlinereport tbody tr.section .h4 { font-size: 1.03125rem; } -#page-report-outline-index .table tbody td.delegated { +#page-report-outline-index #outlinereport tbody td.delegated { padding-left: 3.5rem; } diff --git a/public/theme/classic/style/moodle.css b/public/theme/classic/style/moodle.css index 73dd2520658..636e1682d18 100644 --- a/public/theme/classic/style/moodle.css +++ b/public/theme/classic/style/moodle.css @@ -36959,19 +36959,19 @@ img.userpicture { font-size: 1.03125rem; } -#page-report-outline-index .table tbody tr { +#page-report-outline-index #outlinereport tbody tr { background-color: #fff; } -#page-report-outline-index .table tbody tr.section { +#page-report-outline-index #outlinereport tbody tr.section { padding-left: 2rem; } -#page-report-outline-index .table tbody tr.section h3, #page-report-outline-index .table tbody tr.section .h3 { +#page-report-outline-index #outlinereport tbody tr.section h3, #page-report-outline-index #outlinereport tbody tr.section .h3 { font-size: 1.171875rem; } -#page-report-outline-index .table tbody tr.section h4, #page-report-outline-index .table tbody tr.section .h4 { +#page-report-outline-index #outlinereport tbody tr.section h4, #page-report-outline-index #outlinereport tbody tr.section .h4 { font-size: 1.03125rem; } -#page-report-outline-index .table tbody td.delegated { +#page-report-outline-index #outlinereport tbody td.delegated { padding-left: 3.5rem; }