From d0483c0e6c429fbb7082c90455b300737296455b Mon Sep 17 00:00:00 2001 From: Laurent David Date: Tue, 11 Feb 2025 15:18:04 +0100 Subject: [PATCH] MDL-84379 theme_boost: Fix course management page layout --- course/classes/management_renderer.php | 2 +- theme/boost/scss/moodle/coursemanagement.scss | 7 ------- theme/boost/style/moodle.css | 4 ---- theme/classic/style/moodle.css | 4 ---- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/course/classes/management_renderer.php b/course/classes/management_renderer.php index a9f8ecb520a..239520bcbd6 100644 --- a/course/classes/management_renderer.php +++ b/course/classes/management_renderer.php @@ -839,7 +839,7 @@ class core_course_management_renderer extends plugin_renderer_base { protected function detail_pair($key, $value, $class ='') { $html = html_writer::start_div('detail-pair row yui3-g '.preg_replace('#[^a-zA-Z0-9_\-]#', '-', $class)); $html .= html_writer::div(html_writer::span($key), 'pair-key col-md-3 yui3-u-1-4 fw-bold'); - $html .= html_writer::div(html_writer::span($value), 'pair-value col-md-8 yui3-u-3-4'); + $html .= html_writer::div(html_writer::div($value, 'd-flex'), 'pair-value col-md-8 yui3-u-3-4'); $html .= html_writer::end_div(); return $html; } diff --git a/theme/boost/scss/moodle/coursemanagement.scss b/theme/boost/scss/moodle/coursemanagement.scss index b64090b727f..f64b9f643ca 100644 --- a/theme/boost/scss/moodle/coursemanagement.scss +++ b/theme/boost/scss/moodle/coursemanagement.scss @@ -215,13 +215,6 @@ } } - .bulk-actions .detail-pair { - > * { - display: block; - width: 100%; - } - } - .listing-pagination { text-align: center; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 4fb73932626..11551b802c2 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -31677,10 +31677,6 @@ table.calendartable caption { #course-category-listings .detail-pair .pair-value select { max-width: 100%; } -#course-category-listings .bulk-actions .detail-pair > * { - display: block; - width: 100%; -} #course-category-listings .listing-pagination { text-align: center; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 767c7d8554c..3b674aa457e 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -31683,10 +31683,6 @@ table.calendartable caption { #course-category-listings .detail-pair .pair-value select { max-width: 100%; } -#course-category-listings .bulk-actions .detail-pair > * { - display: block; - width: 100%; -} #course-category-listings .listing-pagination { text-align: center; }