Merge pull request #30 from one-some/ui2-cursor-fixes

Assorted small additions
This commit is contained in:
ebolam
2022-08-12 13:09:48 -04:00
committed by GitHub
3 changed files with 19 additions and 1 deletions

View File

@@ -386,6 +386,10 @@
} }
/* -----------------------------------------Bias-------------------------------------- */ /* -----------------------------------------Bias-------------------------------------- */
#biases_label {
cursor: pointer;
}
.bias { .bias {
display: grid; display: grid;
grid-template-areas: "phrase percent max"; grid-template-areas: "phrase percent max";
@@ -551,6 +555,11 @@
} }
} }
.story_menu_pin {
color: #999;
cursor: pointer;
}
table.server_vars { table.server_vars {
border: 1px solid #959595; border: 1px solid #959595;
@@ -582,6 +591,10 @@ td.server_vars {
margin: 5px; margin: 5px;
} }
.wi_folder_collapser, .wi_add_button {
cursor: pointer;
}
.world_info_card { .world_info_card {
width: 95%; width: 95%;
border: 2px outset var(--wi_card_border_color); border: 2px outset var(--wi_card_border_color);
@@ -953,6 +966,7 @@ body {
.popup .item .file { .popup .item .file {
grid-area: file; grid-area: file;
display: grid; display: grid;
cursor: pointer;
} }
.popup .item .file:hover { .popup .item .file:hover {
@@ -997,6 +1011,7 @@ body {
display: grid; display: grid;
grid-template-areas: "item gpu_size"; grid-template-areas: "item gpu_size";
grid-template-columns: auto 40px; grid-template-columns: auto 40px;
cursor: pointer;
} }
.popup .item .model:hover { .popup .item .model:hover {

View File

@@ -1151,6 +1151,7 @@ function world_info_folder(data) {
collapse_icon = document.createElement("span"); collapse_icon = document.createElement("span");
collapse_icon.id = "world_info_folder_collapse_"+folder_name; collapse_icon.id = "world_info_folder_collapse_"+folder_name;
collapse_icon.classList.add("oi"); collapse_icon.classList.add("oi");
collapse_icon.classList.add("wi_folder_collapser");
collapse_icon.setAttribute("data-glyph", "chevron-bottom"); collapse_icon.setAttribute("data-glyph", "chevron-bottom");
collapse_icon.setAttribute("folder", folder_name); collapse_icon.setAttribute("folder", folder_name);
collapse_icon.onclick = function () { collapse_icon.onclick = function () {
@@ -1162,6 +1163,7 @@ function world_info_folder(data) {
expand_icon = document.createElement("span"); expand_icon = document.createElement("span");
expand_icon.id = "world_info_folder_expand_"+folder_name; expand_icon.id = "world_info_folder_expand_"+folder_name;
expand_icon.classList.add("oi"); expand_icon.classList.add("oi");
expand_icon.classList.add("wi_folder_collapser");
expand_icon.setAttribute("data-glyph", "chevron-right"); expand_icon.setAttribute("data-glyph", "chevron-right");
expand_icon.setAttribute("folder", folder_name); expand_icon.setAttribute("folder", folder_name);
expand_icon.onclick = function () { expand_icon.onclick = function () {
@@ -1190,6 +1192,7 @@ function world_info_folder(data) {
//create add button //create add button
add_icon = document.createElement("span"); add_icon = document.createElement("span");
add_icon.classList.add("oi"); add_icon.classList.add("oi");
add_icon.classList.add("wi_add_button");
add_icon.setAttribute("data-glyph", "plus"); add_icon.setAttribute("data-glyph", "plus");
add_icon.textContent = "Add World Info Entry"; add_icon.textContent = "Add World Info Entry";
add_icon.setAttribute("folder", folder_name); add_icon.setAttribute("folder", folder_name);

View File

@@ -57,7 +57,7 @@
{% include 'settings item.html' %} {% include 'settings item.html' %}
{% endwith %} {% endwith %}
</div> </div>
<h4> <h4 id="biases_label">
<span id="bias_open" class="oi" data-glyph="chevron-bottom" onclick='this.classList.add("hidden"); <span id="bias_open" class="oi" data-glyph="chevron-bottom" onclick='this.classList.add("hidden");
document.getElementById("bias_close").classList.remove("hidden"); document.getElementById("bias_close").classList.remove("hidden");
document.getElementById("biasing").classList.add("hidden");'> Biasing:</span> document.getElementById("biasing").classList.add("hidden");'> Biasing:</span>