Hide chat BG titles

This commit is contained in:
Cohee 2023-10-21 20:41:19 +03:00
parent 0b535e98b8
commit 999c1b1105
2 changed files with 7 additions and 1 deletions

View File

@ -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}`;
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) {
toastr.warning('No backgrounds to choose from. Please upload some images to the "backgrounds" folder.');
return;

View File

@ -1565,6 +1565,10 @@ input[type=search]:focus::-webkit-search-cancel-button {
font-size: calc(var(--fontScale) * 0.9em);
}
.bg_example[custom="true"] .BGSampleTitle {
display: none;
}
.bg_button {
width: 15px;
height: 15px;