From 1c9b40a84cfc5e0a3c08ad4615066d17b30a7a33 Mon Sep 17 00:00:00 2001 From: somebody Date: Sat, 19 Nov 2022 20:26:27 -0600 Subject: [PATCH 1/2] Fix error when searching for something that doesn't exist --- static/koboldai.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/koboldai.js b/static/koboldai.js index 9ee85266..e4befd27 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -5292,6 +5292,7 @@ process_cookies(); return; } else if (finder_mode === "ui") { let index = finder_selection_index >= 0 ? finder_selection_index : 0; + if (!actions[index]) return; actions[index].click(); } } else if (event.key === "ArrowUp") { From a13228e05bb59e31fb0dabe1f7c18047fb7adf5c Mon Sep 17 00:00:00 2001 From: somebody Date: Wed, 23 Nov 2022 14:10:41 -0600 Subject: [PATCH 2/2] Logo center fix --- koboldai_settings.py | 15 ++++++++------- static/koboldai.css | 15 ++++++++++----- templates/index_new.html | 6 +++++- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index 0375be24..fe7b6f27 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -616,13 +616,14 @@ class model_settings(settings): self.oaiapikey = "" # API key to use for OpenAI API calls self.configname = None self.online_model = '' - self.welcome_default = """ -
-
Please load a model from the left.
- If you encounter any issues, please click the Download debug dump link in the Home tab on the left flyout and attach the downloaded file to your error report on Github, Reddit, or Discord. - A redacted version (without story text) is available. -
-
""" # Custom Welcome Text + self.welcome_default = """ +
+
+
Please load a model from the left.
+ If you encounter any issues, please click the Download debug dump link in the Home tab on the left flyout and attach the downloaded file to your error report on Github, Reddit, or Discord. + A redacted version (without story text) is available. +
+
""" # Custom Welcome Text self.welcome = self.welcome_default self.koboldai_vars = koboldai_vars diff --git a/static/koboldai.css b/static/koboldai.css index 2f654de0..1db8bd7d 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -1231,6 +1231,7 @@ body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: calc((1em*var(--game_screen_font_size_adjustment)) + var(--font_size_adjustment)); line-height: 1.42857143; + position: relative; } #story_prompt[story_prompt_in_ai="true"] { @@ -2433,16 +2434,20 @@ body { } #welcome-logo { - position: absolute; - top: 50%; - margin-top: -50px; - left: 50%; - transform: translate(-50%, -50%); width: 50%; max-width: 720px; filter: drop-shadow(5px 5px 5px #222); } +#welcome-logo-container { + width: 100%; + height: 100%; + position: absolute; + display: flex; + justify-content: center; + align-items: center; +} + #welcome-text-content { display: inline-block; align-self: flex-end; diff --git a/templates/index_new.html b/templates/index_new.html index 47abe19e..caeb3307 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -47,7 +47,11 @@

Disconnected

-
+ +
+
+
+