From eb7b82912df2c32528049f6ca318372ee8e86603 Mon Sep 17 00:00:00 2001 From: ebolam Date: Thu, 7 Sep 2023 20:38:18 -0400 Subject: [PATCH] Fix for welcome message going away when clicked in --- static/koboldai.css | 2 ++ static/koboldai.js | 11 +++++++++++ templates/index_new.html | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/static/koboldai.css b/static/koboldai.css index 1e2b2bf1..9b10a928 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -2873,7 +2873,9 @@ body { } .welcome_container { + position: absolute; height: 100%; + width: 100%; display: flex; margin-top: auto; } diff --git a/static/koboldai.js b/static/koboldai.js index 9ab6b7a4..64bb119a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6106,6 +6106,17 @@ function closePopups(userAction=false) { if (allHidden) container.classList.add("hidden"); } +function hide_welcome_container() { + welcome_container = document.getElementById("welcome_container"); + welcome_container.classList.add("hidden"); + document.getElementById("Selected Text").focus(); +} + +function show_welcome_container() { + welcome_container = document.getElementById("welcome_container"); + welcome_container.classList.remove("hidden"); +} + $el("#popup-container").addEventListener("click", function(event) { if (event.target === this) closePopups(true); }); diff --git a/templates/index_new.html b/templates/index_new.html index 8654e59c..0f2fecaf 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -49,7 +49,7 @@

Disconnected

-
+