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).
This commit is contained in:
Paul Holden
2025-08-20 00:26:32 +01:00
parent c1311feeb1
commit 27c4ec6bc7
5 changed files with 13 additions and 15 deletions
@@ -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),
@@ -45,7 +45,7 @@
<td class="cell activityname {{!
}}{{#indelegated}}delegated{{/indelegated}}{{^indelegated}}ps-5{{/indelegated}}"
>
<div class="d-flex align-items-center">
<div class="d-flex gap-2 align-items-center">
{{{ activityicon }}}
{{#link}}<a href="{{ link }}">{{/link}}{{{ text }}}{{#link}}</a>{{/link}}
</div>
+1 -1
View File
@@ -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;
}
+5 -5
View File
@@ -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;
}
+5 -5
View File
@@ -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;
}