diff --git a/static/css/style.css b/static/css/style.css index 3584cb8..dfa7dc6 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -106,6 +106,11 @@ body { border-top-width: 1px; } +.notesDiv { + height: calc(100% - 50px); + overflow-y: scroll; +} + .notesBar button { width: calc(100% - 7px - 7px - 3.5px); height: 35px; diff --git a/static/js/main.js b/static/js/main.js index 3155ed2..95e8f9f 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -132,8 +132,10 @@ function displayPrompt(message, callback) { errorInput.value = "" closeErrorButton.addEventListener("click", (event) => { - callback(errorInput.value) - callback = undefined + if (callback) { + callback(errorInput.value) + callback = undefined + } }); errorInput.addEventListener("keyup", (event) => { if (event.key == "Enter") {