Skip to content

Commit c240bcf

Browse files
committed
Fix visual issues with active elements
1 parent 44ca565 commit c240bcf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

exercise/static/exercise/chapter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
first_div.attr("class", "form-group");
321321

322322
var button = $("<input>");
323-
button.attr("class", "btn btn-primary");
323+
button.attr("class", "btn btn-primary mt-3");
324324
button.attr("value", "Submit");
325325
button.attr("type", "submit");
326326

@@ -405,6 +405,7 @@
405405
if (exercise.element.attr("data-title"))
406406
title = "<p><b>" + exercise.element.attr("data-title") + "</b></p>";
407407
exercise.element.find(exercise.settings.summary_selector).remove();
408+
$('.exercise-nav-info').parent().remove();
408409
$(title).prependTo(exercise.element.find(".exercise-response"));
409410
}
410411

0 commit comments

Comments
 (0)