mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Unify button styles. Display newly added tags in filter. Fix deleted character formatting.
This commit is contained in:
@@ -201,7 +201,7 @@ let safetychat = [
|
|||||||
is_user: false,
|
is_user: false,
|
||||||
is_name: true,
|
is_name: true,
|
||||||
create_date: 0,
|
create_date: 0,
|
||||||
mes: "\n*You deleted a character/chat and arrived back here for safety reasons! Pick another character!*\n\n",
|
mes: "\n<i>You deleted a character/chat and arrived back here for safety reasons! Pick another character!</i>\n\n",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
let chat_create_date = 0;
|
let chat_create_date = 0;
|
||||||
@@ -917,7 +917,7 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
|
|||||||
|
|
||||||
if (this_chid != undefined && !isSystem)
|
if (this_chid != undefined && !isSystem)
|
||||||
mes = mes.replaceAll("<", "<").replaceAll(">", ">"); //for welcome message
|
mes = mes.replaceAll("<", "<").replaceAll(">", ">"); //for welcome message
|
||||||
if (this_chid === undefined && !selected_group) {
|
if ((this_chid === undefined || this_chid == "invalid-safety-id") && !selected_group) {
|
||||||
mes = mes
|
mes = mes
|
||||||
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
||||||
.replace(/\n/g, "<br/>");
|
.replace(/\n/g, "<br/>");
|
||||||
|
@@ -143,6 +143,7 @@ function selectTag(event, ui, listSelector) {
|
|||||||
appendTagToList(getInlineListSelector(), tag, { removable: false });
|
appendTagToList(getInlineListSelector(), tag, { removable: false });
|
||||||
addTagToMap(tag.id);
|
addTagToMap(tag.id);
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
|
printTags();
|
||||||
|
|
||||||
// need to return false to keep the input clear
|
// need to return false to keep the input clear
|
||||||
return false;
|
return false;
|
||||||
|
@@ -1422,7 +1422,7 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
|||||||
background-color: var(--black50a);
|
background-color: var(--black50a);
|
||||||
border: 1px solid var(--white30a);
|
border: 1px solid var(--white30a);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
padding: 10px;
|
padding: 8px;
|
||||||
width: min-content;
|
width: min-content;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
@@ -3494,12 +3494,6 @@ toolcool-color-picker {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openai_logit_bias_preset_form .menu_button,
|
|
||||||
.openai_preset_buttons .menu_button,
|
|
||||||
.world_info_select_block .menu_button {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openai_logit_bias_list:empty::before {
|
.openai_logit_bias_list:empty::before {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
Reference in New Issue
Block a user