From cad54628438bfb98d5f67be37a78be704b8e5726 Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 11 Oct 2022 19:00:52 -0400 Subject: [PATCH] Update for world info box resizing --- static/koboldai.js | 2 +- templates/templates.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/koboldai.js b/static/koboldai.js index 1f253a65..378750d9 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -2583,7 +2583,7 @@ function autoResize(element, min_size=200) { if (min_size > element.scrollHeight) { element.style.height = min_size + "px"; } else { - element.style.height = element.scrollHeight + 'px'; + element.style.height = (element.scrollHeight + 5) + 'px'; } } diff --git a/templates/templates.html b/templates/templates.html index bc646d4e..73e8f187 100644 --- a/templates/templates.html +++ b/templates/templates.html @@ -35,7 +35,7 @@
Text: - +
Comment: - +