mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
HR after group list display
This commit is contained in:
@ -626,6 +626,7 @@ function printCharacters() {
|
|||||||
);
|
);
|
||||||
//console.log('printcharacters() -- printing -- ChID '+i+' ('+item.name+')');
|
//console.log('printcharacters() -- printing -- ChID '+i+' ('+item.name+')');
|
||||||
});
|
});
|
||||||
|
$("#rm_print_characters_block").prepend(`<hr>`);
|
||||||
printGroups();
|
printGroups();
|
||||||
sortCharactersList();
|
sortCharactersList();
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,6 @@ function printGroups() {
|
|||||||
updateGroupAvatar(group);
|
updateGroupAvatar(group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateGroupAvatar(group) {
|
function updateGroupAvatar(group) {
|
||||||
$("#rm_print_characters_block .group_select").each(function () {
|
$("#rm_print_characters_block .group_select").each(function () {
|
||||||
if ($(this).data("id") == group.id) {
|
if ($(this).data("id") == group.id) {
|
||||||
@ -265,7 +264,7 @@ function getGroupAvatar(group) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function generateGroupWrapper(by_auto_mode, type=null) {
|
async function generateGroupWrapper(by_auto_mode, type = null) {
|
||||||
if (online_status === "no_connection") {
|
if (online_status === "no_connection") {
|
||||||
is_group_generating = false;
|
is_group_generating = false;
|
||||||
setSendButtonState(false);
|
setSendButtonState(false);
|
||||||
@ -377,7 +376,7 @@ async function generateGroupWrapper(by_auto_mode, type=null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function activateSwipe(members) {
|
function activateSwipe(members) {
|
||||||
const name = chat[chat.length -1].name;
|
const name = chat[chat.length - 1].name;
|
||||||
const activatedNames = members.includes(name) ? [name] : [];
|
const activatedNames = members.includes(name) ? [name] : [];
|
||||||
const memberIds = activatedNames
|
const memberIds = activatedNames
|
||||||
.map((x) => characters.findIndex((y) => y.name === x))
|
.map((x) => characters.findIndex((y) => y.name === x))
|
||||||
@ -591,7 +590,7 @@ function select_group_chats(chat_id) {
|
|||||||
$("#rm_group_filter").val("").trigger("input");
|
$("#rm_group_filter").val("").trigger("input");
|
||||||
|
|
||||||
$('input[name="rm_group_activation_strategy"]').off();
|
$('input[name="rm_group_activation_strategy"]').off();
|
||||||
$('input[name="rm_group_activation_strategy"]').on("input", async function(e) {
|
$('input[name="rm_group_activation_strategy"]').on("input", async function (e) {
|
||||||
if (chat_id) {
|
if (chat_id) {
|
||||||
let _thisGroup = groups.find((x) => x.id == chat_id);
|
let _thisGroup = groups.find((x) => x.id == chat_id);
|
||||||
_thisGroup.activation_strategy = Number(e.target.value);
|
_thisGroup.activation_strategy = Number(e.target.value);
|
||||||
|
@ -353,6 +353,7 @@ code {
|
|||||||
#personality_div hr,
|
#personality_div hr,
|
||||||
#top-settings-holder hr {
|
#top-settings-holder hr {
|
||||||
background-image: linear-gradient(90deg, var(--transparent), var(--white30a), var(--transparent));
|
background-image: linear-gradient(90deg, var(--transparent), var(--white30a), var(--transparent));
|
||||||
|
min-height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options-content a {
|
.options-content a {
|
||||||
|
Reference in New Issue
Block a user