From 10514e5935af80d12c2b107a649c007f5ad636e9 Mon Sep 17 00:00:00 2001 From: maaa Date: Sun, 27 Aug 2023 16:12:02 +0200 Subject: [PATCH] :3 --- static/css/style.css | 5 +++++ static/js/main.js | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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") {