From acccc3a98131bf07e45deb9d5d63bd24e5317378 Mon Sep 17 00:00:00 2001 From: Agrendalath Date: Wed, 16 Oct 2019 01:36:31 +0200 Subject: [PATCH] Fix exam timer text wrapping on smaller screens This fixes wrapping the exam-text bar on smaller screens during timed exams, which prevented users from viewing the exam's content. --- .../course/layout/_courseware_preview.scss | 5 ++++- .../proctored-exam-status.underscore | 22 +++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lms/static/sass/course/layout/_courseware_preview.scss b/lms/static/sass/course/layout/_courseware_preview.scss index 2c2626a8b6..53bfa37175 100644 --- a/lms/static/sass/course/layout/_courseware_preview.scss +++ b/lms/static/sass/course/layout/_courseware_preview.scss @@ -83,7 +83,10 @@ $proctoring-banner-text-size: 14px; .exam-text { display: inline-block; - width: calc(100% - 250px); + + @include media-breakpoint-up(md) { + width: calc(100% - 250px); + } } a { diff --git a/lms/templates/courseware/proctored-exam-status.underscore b/lms/templates/courseware/proctored-exam-status.underscore index de14370bf4..b70a3d977c 100644 --- a/lms/templates/courseware/proctored-exam-status.underscore +++ b/lms/templates/courseware/proctored-exam-status.underscore @@ -6,17 +6,6 @@ .replace(/>/g, '>') } %> -
- <% // xss-lint: disable=underscore-not-escaped %> - <%= interpolate_text(gettext('You are taking "{exam_link}" as {exam_type}. '), {exam_link: ""+gtLtEscape(exam_display_name)+"", exam_type: (!_.isUndefined(arguments[0].exam_type)) ? exam_type : gettext('a timed exam')}) %> - - <%- gettext('The timer on the right shows the time remaining in the exam.') %> - <%- gettext('To receive credit for problems, you must select "Submit" for each problem before you select "End My Exam".') %> - - -
<% if(attempt_status !== 'ready_to_submit') {%> @@ -36,4 +25,15 @@
+
+ <% // xss-lint: disable=underscore-not-escaped %> + <%= interpolate_text(gettext('You are taking "{exam_link}" as {exam_type}. '), {exam_link: ""+gtLtEscape(exam_display_name)+"", exam_type: (!_.isUndefined(arguments[0].exam_type)) ? exam_type : gettext('a timed exam')}) %> + + <%- gettext('The timer on the right shows the time remaining in the exam.') %> + <%- gettext('To receive credit for problems, you must select "Submit" for each problem before you select "End My Exam".') %> + + +