From 94fd778dbf566deda4da9f51f143aee2f34e33af Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Thu, 28 May 2020 14:26:25 +0200 Subject: [PATCH] MDL-68840 mod_quiz: random question in question list css fix --- mod/quiz/styles.css | 23 +++++++++++++++-------- theme/boost/scss/moodle/question.scss | 1 + theme/boost/style/moodle.css | 1 + theme/classic/style/moodle.css | 1 + 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/mod/quiz/styles.css b/mod/quiz/styles.css index 20a38113fb0..ebfaa043da1 100644 --- a/mod/quiz/styles.css +++ b/mod/quiz/styles.css @@ -889,15 +889,13 @@ table.quizreviewsummary td.cell { } #page-mod-quiz-edit ul.slots li.section li.activity .activityinstance { - display: block; + display: flex; + flex: 1 1 auto; min-height: 1.7em; - position: absolute; - top: 0; - left: 5em; - width: 100%; } #page-mod-quiz-edit ul.slots li.section li.activity .mod-indent-outer { + display: flex; padding-left: 22px; } @@ -914,7 +912,6 @@ table.quizreviewsummary td.cell { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; - width: 70%; display: inline-block; height: 20px; } @@ -927,6 +924,9 @@ table.quizreviewsummary td.cell { #page-mod-quiz-edit ul.slots li.activity div.activityinstance .questionname { font-weight: bold; color: #555; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } #page-mod-quiz-edit ul.slots li.activity div.activityinstance .questiontext { @@ -941,6 +941,10 @@ table.quizreviewsummary td.cell { #page-mod-quiz-edit ul.slots li.activity div.activityinstance .mod_quiz_random_qbank_link { font-size: 0.8em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + margin-left: 0.25rem; } #page-mod-quiz-edit ul.slots .activityinstance img.activityicon { @@ -950,6 +954,7 @@ table.quizreviewsummary td.cell { } #page-mod-quiz-edit .section .activity .actions { + position: inherit; white-space: nowrap; background: #e6e6e6; padding: 0.1em 0; @@ -1219,8 +1224,10 @@ table#categoryquestions { #page-mod-quiz-edit ul.slots li.section li.activity .activityinstance { top: -30px; left: 0; - } - #page-mod-quiz-edit ul.slots .activityinstance span.instancename { + padding-right: 0; + overflow: hidden; + align-items: center; + position: absolute; width: 100%; } } diff --git a/theme/boost/scss/moodle/question.scss b/theme/boost/scss/moodle/question.scss index 38ac3915eba..4ed5c9a5c8c 100644 --- a/theme/boost/scss/moodle/question.scss +++ b/theme/boost/scss/moodle/question.scss @@ -424,6 +424,7 @@ body.jsenabled .questionflag input[type=checkbox] { #page-mod-quiz-edit ul.slots .activityinstance { > a { display: flex; + max-width: 100%; align-items: center; text-indent: 0; padding-left: 0; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 0a03d632c7b..5a6ed7f2574 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -15678,6 +15678,7 @@ body.jsenabled .questionflag input[type=checkbox] { #page-mod-quiz-edit ul.slots .activityinstance > a { display: flex; + max-width: 100%; align-items: center; text-indent: 0; padding-left: 0; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 9212c9654b2..384c47badff 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -15901,6 +15901,7 @@ body.jsenabled .questionflag input[type=checkbox] { #page-mod-quiz-edit ul.slots .activityinstance > a { display: flex; + max-width: 100%; align-items: center; text-indent: 0; padding-left: 0; }