From d1faa4b013d79b634fa72575b1fedd6c1dac2217 Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 19 Aug 2022 19:15:37 -0400 Subject: [PATCH] Option area partially open bug fix --- static/koboldai.js | 7 +++++++ templates/index_new.html | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/static/koboldai.js b/static/koboldai.js index 89e6878d..dd45cbba 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -74,6 +74,13 @@ function reset_story() { while (story_area.lastChild.id != 'story_prompt') { story_area.removeChild(story_area.lastChild); } + dummy_span = document.createElement("span"); + text = ""; + for (i=0;i<154;i++) { + text += "\xa0"; + } + dummy_span.textContent = text; + story_area.append(dummy_span); var option_area = document.getElementById("Select Options"); while (option_area.firstChild) { option_area.removeChild(option_area.firstChild); diff --git a/templates/index_new.html b/templates/index_new.html index cb070376..21ee3730 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -39,6 +39,15 @@

Disconnected

+ +                        +                        +                        +                        +                        +                        +                        +