Skip to content

Commit

Permalink
Merge pull request #2250 from drgrice1/course-info-edit-tweaks
Browse files Browse the repository at this point in the history
Tweaks for the PG problem editor for course info files.
  • Loading branch information
pstaabp authored Nov 20, 2023
2 parents a11a2de + 8bc52de commit 0203541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/PGProblemEditor/pgproblemeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@

if (fileType === 'course_info') {
const contents = webworkConfig?.pgCodeMirror?.getValue();
if (contents) renderArea.innerHTML = contents;
if (contents) renderArea.innerHTML = `<div class="overflow-auto p-2 bg-light h-100">${contents}</div>`;
else
renderArea.innerHTML = '<div class="alert alert-danger p-1 m-2 fw-bold">The file has no content.</div>';

Expand Down

0 comments on commit 0203541

Please sign in to comment.