From 96581087a96ea22dbba87f2f8a956970bbdc1ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sat, 5 Mar 2022 14:55:50 +0100 Subject: [PATCH] MDL-74091 core_question: 'table-responsive' qtable avoids overlap. --- mod/quiz/styles.css | 1 + question/classes/local/bank/view.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/quiz/styles.css b/mod/quiz/styles.css index e5a96ee2a73..b3fefaf2516 100644 --- a/mod/quiz/styles.css +++ b/mod/quiz/styles.css @@ -900,6 +900,7 @@ table.quizreviewsummary td.cell { table#categoryquestions { width: 100%; table-layout: fixed; + overflow-x: visible; } #categoryquestions .iconcol { diff --git a/question/classes/local/bank/view.php b/question/classes/local/bank/view.php index 25ab5958cd0..06273bba79e 100644 --- a/question/classes/local/bank/view.php +++ b/question/classes/local/bank/view.php @@ -1103,7 +1103,7 @@ class view { */ protected function print_table($questions): void { // Start of the table. - echo \html_writer::start_tag('table', ['id' => 'categoryquestions']); + echo \html_writer::start_tag('table', ['id' => 'categoryquestions', 'class' => 'table-responsive']); // Prints the table header. echo \html_writer::start_tag('thead');