From 9134504a7b1515e55bce75ed84be03b713df1f35 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 6 Mar 2023 16:51:08 +0200 Subject: [PATCH] Post-merge fixes --- public/index.html | 46 +++++++++++++++++++++++++++++----------------- public/style.css | 15 +++------------ 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/public/index.html b/public/index.html index 89a734a2c..fa6a6c5c1 100644 --- a/public/index.html +++ b/public/index.html @@ -239,9 +239,16 @@ autoloadchat(); autoconnect(); }); - + + function flushSettings() { + $('#settings_perset').empty(); + $('#world_info').empty(); + $('#world_info').append(''); + } + //RossAscends: a smaller load-up function to be used instead of refreshing the page in cases like deleting a character and changing username function QuickRefresh(){ + flushSettings(); clearChat(); //characters.length = 0 //if this could be enabled it would allow the GetCharacters function to detect files added or removed from the char dir on each panel load console.log('quickRefresh() -- active_character -- '+active_character); @@ -2544,6 +2551,7 @@ } async function getUserAvatars(){ $("#user_avatar_block").html(""); //RossAscends: necessary to avoid doubling avatars each QuickRefresh. + $('#user_avatar_block').append('
+
'); const response = await fetch("/getuseravatars", { method: "POST", headers: { @@ -3810,7 +3818,7 @@ $('#world_create_button').click(() => { createNewWorldInfo(); }); - }); + //RossAscends: auto-load last character function (fires when active_character is defined and auto_load_chat is true) function autoloadchat(){ console.log('starting autoloadchat routine'); @@ -3956,7 +3964,7 @@
 
- +
@@ -4043,7 +4051,7 @@   0 - + @@ -4233,8 +4241,8 @@

Soft Prompt

-
About soft prompts (?)
-
@@ -4288,6 +4296,9 @@
+
+
+ +

Name

@@ -4295,6 +4306,9 @@
+ +
+

World Info

@@ -4302,26 +4316,26 @@

+Import

-
How to use (?)
+

How to use ?

- - +

- Scan Depth (?) + Scan Depth ?

depth

- Token Budget (?) + Token Budget ?

budget
@@ -4352,15 +4366,10 @@
- -
- -
-

-
+

Power User Options

Auto-connects Last Server

@@ -4375,6 +4384,9 @@ +
+ +
diff --git a/public/style.css b/public/style.css index dc6cb55be..53978584e 100644 --- a/public/style.css +++ b/public/style.css @@ -1125,12 +1125,6 @@ width: 103px; font-size: 16px; } -#world_info_edit_button { - cursor: pointer; - color: #ffffffaa; - margin-left: 10px; -} - #world_popup { display: none; background-color: rgba(0,0,0,0.3); @@ -1152,15 +1146,17 @@ width: 103px; } #world_popup_bottom_holder { - padding: 1rem 0; + padding: 0.5rem 0; margin: 0 18px; display: flex; flex-direction: row; justify-content: flex-end; + align-items: center; } #world_popup_bottom_holder div { cursor: pointer; + width: fit-content; user-select: none; opacity: 0.8; } @@ -1173,11 +1169,6 @@ width: 103px; margin-left: 1rem; } -#world_info_depth_block, #world_info_budget_block { - opacity: 0.8; - margin-top: 20px; -} - #world_info_depth_block input[type="range"], #world_info_budget_block input[type="range"] { margin-left: 10px; }