Hide chat BG titles
This commit is contained in:
parent
0b535e98b8
commit
999c1b1105
|
@ -302,7 +302,9 @@ async function onDeleteBackgroundClick(e) {
|
||||||
const autoBgPrompt = `Pause your roleplay and choose a location ONLY from the provided list that is the most suitable for the current scene. Do not output any other text:\n{0}`;
|
const autoBgPrompt = `Pause your roleplay and choose a location ONLY from the provided list that is the most suitable for the current scene. Do not output any other text:\n{0}`;
|
||||||
|
|
||||||
async function autoBackgroundCommand() {
|
async function autoBackgroundCommand() {
|
||||||
const options = Array.from(document.querySelectorAll('.BGSampleTitle')).map(x => ({ element: x, text: x.innerText.trim() })).filter(x => x.text.length > 0);
|
/** @type {HTMLElement[]} */
|
||||||
|
const bgTitles = Array.from(document.querySelectorAll('#bg_menu_content .BGSampleTitle'));
|
||||||
|
const options = bgTitles.map(x => ({ element: x, text: x.innerText.trim() })).filter(x => x.text.length > 0);
|
||||||
if (options.length == 0) {
|
if (options.length == 0) {
|
||||||
toastr.warning('No backgrounds to choose from. Please upload some images to the "backgrounds" folder.');
|
toastr.warning('No backgrounds to choose from. Please upload some images to the "backgrounds" folder.');
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1565,6 +1565,10 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
||||||
font-size: calc(var(--fontScale) * 0.9em);
|
font-size: calc(var(--fontScale) * 0.9em);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg_example[custom="true"] .BGSampleTitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.bg_button {
|
.bg_button {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
|
Loading…
Reference in New Issue