Skip to content

Commit

Permalink
Course has ended sticky alert padding causes UI bug with exercise anc…
Browse files Browse the repository at this point in the history
…hor links

Fixes #1311
  • Loading branch information
khattam2 committed Dec 16, 2023
1 parent c23b710 commit e567d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/templates/course/course_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ <h4 class="modal-title" id="unenroll-modal-title">
const stickyAlert = $('.sticky-alert');
if (target.length > 0 && stickyAlert.length > 0) {
const alertHeight = stickyAlert[0].offsetHeight;
target.css('padding-top', alertHeight + 'px');
target.css('margin-top', alertHeight + 'px');
}
});
</script>
Expand Down

0 comments on commit e567d84

Please sign in to comment.