Fix for WI area padding and New WI entry button

This commit is contained in:
ebolam
2022-08-23 13:39:22 -04:00
parent 8fc4e00332
commit f9041b9e0f
3 changed files with 28 additions and 31 deletions

View File

@@ -177,6 +177,8 @@ input[type="range"]::-ms-fill-upper {
width: 100%; width: 100%;
} }
.setting_container { .setting_container {
display: grid; display: grid;
grid-template-areas: "label value" grid-template-areas: "label value"
@@ -676,11 +678,7 @@ td.server_vars {
white-space: pre-wrap; white-space: pre-wrap;
} }
.story_category_area{ .story_category_area:not(#story_menu_wi){
margin-top: 10px;
}
.story_category_area{
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
} }

View File

@@ -2175,7 +2175,8 @@ function create_new_wi_entry(folder) {
"content": "", "content": "",
"comment": "", "comment": "",
"token_length": 0, "token_length": 0,
"selective": false "selective": false,
"wpp": {'name': "", 'type': "", 'attributes': {}}
}; };
card = world_info_entry(data); card = world_info_entry(data);
card.scrollIntoView(false); card.scrollIntoView(false);

View File

@@ -67,33 +67,31 @@
</div> </div>
</div> </div>
<div id="story_menu_wi" class="story_category_area hidden"> <div id="story_menu_wi" class="story_category_area hidden">
<div> <h4 class="section_header" style="margin-left: 10px;">World Info</h4>
<h4 class="section_header">World Info</h4> <span class="help_text" style="margin-left: 20px;">
<span class="help_text"> Lore information, which the AI recalls by certain words.
Lore information, which the AI recalls by certain words. <span class="helpicon material-icons-outlined" title="Use this instead of Memory for information on things like characters, objects, events, places, and anything else with detail.">help_icon</span>
<span class="helpicon material-icons-outlined" title="Use this instead of Memory for information on things like characters, objects, events, places, and anything else with detail.">help_icon</span> </span>
</span> <div class="setting_tile_area wi_settings">
<div class="setting_tile_area"> {% with menu='World Info' %}
{% with menu='World Info' %} {% with sub_path='' %}
{% with sub_path='' %} {% include 'settings item.html' %}
{% include 'settings item.html' %}
{% endwith %}
{% endwith %} {% endwith %}
</div> {% endwith %}
<div id="WI_Area"> </div>
<span id="world_info_folder_New Folder" class="WI_Folder"> <div id="WI_Area">
<h2> <span id="world_info_folder_New Folder" class="WI_Folder">
<span id="world_info_folder_collapse_root" class="wi_folder_collapser material-icons-outlined" folder="root">expand_more</span> <h2>
<span id="world_info_folder_expand_root" class="wi_folder_collapser material-icons-outlined hidden" folder="root">chevron_right</span> <span id="world_info_folder_collapse_root" class="wi_folder_collapser material-icons-outlined" folder="root">expand_more</span>
<span class="material-icons-outlined" folder="root">folder</span> <span id="world_info_folder_expand_root" class="wi_folder_collapser material-icons-outlined hidden" folder="root">chevron_right</span>
<span original_text="root" contenteditable="true">root</span> <span class="material-icons-outlined" folder="root">folder</span>
</h2> <span original_text="root" contenteditable="true">root</span>
<span class="wi_add_button"> </h2>
<span class="material-icons-outlined">post_add</span> <span class="wi_add_button" onclick='create_new_wi_entry(this.getAttribute("folder"));'>
<span folder="root">Add World Info Entry</span> <span class="material-icons-outlined">post_add</span>
</span> <span folder="root" >Add World Info Entry</span>
</span> </span>
</div> </span>
</div> </div>
</div> </div>
</div> </div>