diff --git a/aiserver.py b/aiserver.py index a72e8b43..971edfe0 100644 --- a/aiserver.py +++ b/aiserver.py @@ -9464,7 +9464,7 @@ def UI_2_get_next_100_actions(data): emit("var_changed", {"classname": "story", "name": "actions", "old_value": None, "value":data_to_send}) #==================================================================# -# Get next 100 actions for infinate scroll +# Get context tokens #==================================================================# @socketio.on("update_tokens") @logger.catch diff --git a/static/koboldai.css b/static/koboldai.css index d5a5e893..46fed158 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -2386,8 +2386,10 @@ body { color: white } -#welcome_text { +.welcome_container { height: 100%; + display: flex; + margin-top: auto; } .welcome_text { diff --git a/static/koboldai.js b/static/koboldai.js index bb06bbee..00e59b2b 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -151,6 +151,7 @@ var colab_cookie_timeout; var setup_missing_wi_toggles_timeout; var var_processing_time = 0; var finder_last_input; +var current_action; //-----------------------------------Server to UI Functions----------------------------------------------- function connect() { console.log("connected"); @@ -229,6 +230,9 @@ function fix_text(val) { function create_options(action) { //Set all options before the next chunk to hidden + if (action.id != current_action+1) { + return; + } document.getElementById('main-grid').setAttribute('option_length', action.action.Options.length); var option_chunk = document.getElementById("Select Options"); diff --git a/templates/index_new.html b/templates/index_new.html index 61c82d1d..15f4893c 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -45,7 +45,7 @@

Disconnected

-
+