mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for welcome message going away when clicked in
This commit is contained in:
@@ -2873,7 +2873,9 @@ body {
|
||||
}
|
||||
|
||||
.welcome_container {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
@@ -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);
|
||||
});
|
||||
|
@@ -49,7 +49,7 @@
|
||||
<div class="gamescreen" id="gamescreen" context-menu="gamescreen">
|
||||
<div id="disconnect_message"><center><h1>Disconnected</h1></center></div>
|
||||
|
||||
<div id="welcome_container" class="welcome_container">
|
||||
<div id="welcome_container" class="welcome_container" onclick="hide_welcome_container();">
|
||||
<div id="welcome_text" class="var_sync_model_welcome" draggable="False"></div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user